Function at 0x4129c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x88]
push esi
mov ebx, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
mov edi, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edx
lea esi, [edi - 1]
cmp esi, edx
jl 0x412a35
cmp byte [esi + ebp], 0x2f
je 0x412a02
dec esi
jns 0x4129f7
jmp 0x412a35
cmp esi, edx
mov eax, 1
je 0x412a0d
mov eax, esi
push eax
push ebp
call fcn.004144b0
sub edi, esi
mov dword [esp + 0x20], eax
dec edi
lea eax, [esi + ebp + 1]
push edi
push eax
call fcn.004144b0
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x412a56
xor edx, edx
cmp ebp, edx
je 0x412bca
cmp byte [ebp], 0
je 0x412bca
push ebp
call fcn.00414460
add esp, 4
mov dword [esp + 0x1c], eax
mov edi, eax
mov esi, str.onResult
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412a81
test cl, cl
je 0x412a7d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412a81
add eax, 2
add esi, 2
test cl, cl
jne 0x412a5d
xor eax, eax
jmp 0x412a86
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412a97
mov dword [esp + 0x10], 1
jmp 0x412b24
mov esi, str.onStatus
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412ac2
test cl, cl
je 0x412abe
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412ac2
add eax, 2
add esi, 2
test cl, cl
jne 0x412a9e
xor eax, eax
jmp 0x412ac7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412b3e
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], 3
cmp dword [eax], 3
jne 0x412b24
mov ecx, dword [eax + 8]
push str.level
call fcn.0043c220
mov esi, eax
test esi, esi
je 0x412b24
push 6
push str.error
lea ecx, [esp + 0x2c]
call fcn.004147f0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push eax
call fcn.00414ad0
test eax, eax
jne 0x412b1b
mov dword [esp + 0x10], 2
lea ecx, [esp + 0x24]
call fcn.004148c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412b7c
mov ecx, dword [ebx + 4]
push 0
push eax
push ecx
mov ecx, dword [ebx]
call fcn.00440060
mov ebx, eax
jmp 0x412b7f
mov esi, str.onError
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412b69
test cl, cl
je 0x412b65
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412b69
add eax, 2
add esi, 2
test cl, cl
jne 0x412b45
xor eax, eax
jmp 0x412b6e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412b24
mov dword [esp + 0x10], 2
jmp 0x412b24
mov ebx, dword [ebx + 4]
xor esi, esi
cmp ebx, esi
jne 0x412cab
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx - 1]
cmp eax, esi
jl 0x412bca
cmp byte [eax + ebp], 0x2f
je 0x412bb3
dec eax
jns 0x412b9e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0xc
sub ecx, eax
lea edx, [eax + ebp + 1]
dec ecx
push ecx
push edx
call fcn.004144b0
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x412bd6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0xc
push edi
call fcn.004143a0
add esp, 4
mov ecx, 0x4afb50
mov esi, eax
push edi
call fcn.004161f0
test esi, esi
je 0x412e7a
mov edi, dword [esp + 0x14]
push esi
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00476f30
mov ebx, eax
mov eax, dword [edi + 0x24]
add esp, 8
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ecx + edx*4], esi
mov ecx, dword [eax + 4]
inc ecx
test ebx, ebx
mov dword [eax + 4], ecx
je 0x412e7a
xor esi, esi
mov ebp, dword [esp + 0x94]
push 1
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], esi
call fcn.0043d4d0
cmp dword [esp + 0x98], esi
je 0x412da0
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x412da0
cmp eax, 3
je 0x412da0
cmp eax, 1
jne 0x412cb4
push eax
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], esi
call fcn.0043d4d0
mov ecx, dword [edi]
lea edx, [esp + 0x24]
push edx
call fcn.00447e30
lea ecx, [esp + 0x24]
mov ebp, 1
call fcn.0043d130
jmp 0x412db1
mov edi, dword [esp + 0x14]
jmp 0x412c26
push 1
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], esi
call fcn.0043d4d0
cmp dword [esp + 0x24], 3
jne 0x412ce6
mov ecx, dword [esp + 0x2c]
mov edi, ecx
call fcn.0043bf40
mov esi, eax
jmp 0x412cf6
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push eax
call fcn.0043d3c0
mov edi, dword [esp + 0x2c]
mov ecx, 6
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], ecx
push 0x4a36ac
lea ecx, [esp + 0x58]
mov ebp, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
call fcn.0043d5b0
mov ecx, esi
dec esi
test ecx, ecx
je 0x412d7a
inc esi
lea edx, [esp + 0x54]
mov ecx, edi
push edx
call fcn.0043d990
xor eax, eax
push 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0x4c], 6
call fcn.0043d4d0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [edx]
call fcn.00447e30
lea ecx, [esp + 0x44]
call fcn.0043d130
dec esi
jne 0x412d30
lea ecx, [esp + 0x54]
call fcn.0043d600
lea ecx, [esp + 0x74]
call fcn.0043d130
lea ecx, [esp + 0x54]
call fcn.0043d130
lea ecx, [esp + 0x24]
call fcn.0043d130
jmp 0x412db1
mov ecx, dword [edi]
lea eax, [esp + 0x34]
push eax
call fcn.00447e30
mov ebp, 1
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push 0
push 0
push 0
push ebp
push ecx
mov ecx, dword [edi]
push 0
push ebx
call fcn.00449930
test eax, eax
je 0x412dde
mov dword [esp + 0x20], 1
push 1
jmp 0x412e63
cmp dword [esp + 0x10], 2
jne 0x412e6a
mov ecx, dword [edi]
lea edx, [esp + 0x34]
push edx
call fcn.00447e30
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0
push 0
mov ebx, 1
push 0
push ebx
push str.onStatus
push 0
push eax
call fcn.00449930
test eax, eax
jne 0x412e5e
mov ecx, dword [edi]
push 0
push str._global.System
mov eax, dword [ecx + 0x78]
mov edx, dword [eax + 0x20]
add edx, 0x140
push edx
call fcn.00440060
mov esi, eax
test esi, esi
je 0x412e6a
mov ecx, dword [edi]
lea eax, [esp + 0x34]
push eax
call fcn.00447e30
mov ecx, dword [edi]
push 0
push 0
push 0
push ebx
push str.onStatus
push 0
push esi
call fcn.00449930
test eax, eax
je 0x412e6a
mov dword [esp + 0x20], ebx
push ebx
mov ecx, dword [edi]
call fcn.00443610
mov ecx, dword [edi]
call fcn.00447f60
lea ecx, [esp + 0x34]
call fcn.0043d130
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412e8d
push eax
mov ecx, 0x4afb50
call fcn.004161f0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, 0x4afb50
call fcn.004161f0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0xc