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

Disassembly:
push 0xffffffffffffffff
push 0x613c10
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov edi, eax
mov eax, dword [esp + 0x84]
push eax
push edi
mov ecx, esi
xor ebx, ebx
call fcn.0040b370
mov ebp, dword [esp + 0x80]
push ebp
push edi
mov ecx, esi
call fcn.0040b400
mov edx, dword [edi]
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
add eax, 0xfffffffd
cmp eax, 0x28
ja case.0x412ad4.6
movzx ecx, byte [eax + 0x413058]
jmp dword [ecx*4 + 0x413018]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push edx
push edi
push eax
mov ecx, esi
call fcn.0040b940
jmp case.0x412ad4.6
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push ecx
push edi
push edx
mov ecx, esi
call fcn.0040bc20
jmp case.0x412ad4.6
cmp dword [esi + 0x2bc], ebx
mov ecx, esi
jle 0x412b5f
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040b5b0
test eax, eax
jne 0x412b43
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push 1
push ecx
push edi
push edx
mov ecx, esi
call fcn.004126f0
jmp case.0x412ad4.6
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
push 0
push eax
push edi
push ecx
mov ecx, esi
call fcn.004126f0
jmp case.0x412ad4.6
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push edi
push eax
call fcn.004126f0
jmp case.0x412ad4.6
lea ecx, [esp + 0x38]
call fcn.00541c60
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x70], 0
call fcn.0055e440
push 0xff
lea ecx, [esp + 0x3c]
call fcn.00543f40
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.0040f310
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00544ad0
jmp case.0x412ad4.6
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push edx
push edi
push eax
mov ecx, esi
call fcn.0040f310
jmp case.0x412ad4.6
lea ecx, [esp + 0x1c]
call fcn.0055f750
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], 1
call fcn.00565400
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.004126f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00564ab0
jmp case.0x412ad4.6
mov ecx, edi
call fcn.00586120
mov ebx, eax
push ebx
lea ecx, [esp + 0x3c]
call fcn.00541fb0
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x78], 2
call fcn.0040f310
test ebx, ebx
je 0x412bbd
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
jmp 0x412bbd
movzx eax, word [edi + 0x16]
movsx ebp, ax
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [edi]
add esp, 4
mov dword [esp + 0x78], eax
push eax
mov eax, dword [edx + 0x74]
mov ecx, edi
call eax
xor ebx, ebx
test ebp, ebp
jle 0x412d08
lea ebx, [ebx]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x3c]
call fcn.00541fb0
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x78], 3
call fcn.0040f310
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00544ad0
inc ebx
cmp ebx, ebp
jl 0x412cc0
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp case.0x412ad4.6
movzx eax, word [edi + 0x16]
movsx ebp, ax
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [edi]
add esp, 4
mov dword [esp + 0x78], eax
push eax
mov eax, dword [edx + 0x74]
mov ecx, edi
call eax
xor ebx, ebx
test ebp, ebp
jle 0x412d98
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x3c]
call fcn.00541fb0
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x78], 4
call fcn.0040f310
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00544ad0
inc ebx
cmp ebx, ebp
jl 0x412d50
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp case.0x412ad4.6
lea ecx, [esp + 0x38]
call fcn.00541c60
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x70], 5
call fcn.00584db0
jmp 0x412ba4
lea ecx, [esp + 0x1c]
call fcn.00523190
lea edx, [esp + 0x1c]
mov ebx, 6
push edx
mov ecx, edi
mov dword [esp + 0x70], ebx
call fcn.00523dd0
lea ecx, [esp + 0x38]
call fcn.0055f750
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 7
call fcn.00565400
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push ecx
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, esi
call fcn.004126f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], bl
call fcn.00564ab0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00523230
jmp case.0x412ad4.6
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x413001
test ebp, ebp
je 0x412e63
test byte [ebp + 0x58], 8
je 0x412e63
mov ebx, 1
mov ecx, dword [esp + 0x74]
push eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.004128b0
jmp case.0x412ad4.6
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
add eax, 0xffffffdb
cmp eax, 3
ja case.default.0x412e93
jmp dword [eax*4 + 0x413084]
push ebx
lea ecx, [esi + 0x218]
call fcn.0054ba40
jmp case.default.0x412e93
push ebx
lea ecx, [esi + 0x218]
call fcn.0054b9d0
jmp case.default.0x412e93
push ebx
lea ecx, [esi + 0x218]
call fcn.0054bab0
jmp case.default.0x412e93
push ebx
lea ecx, [esi + 0x218]
call fcn.0054bb20
test ebx, ebx
je 0x412ede
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
call fcn.00517a80
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x218]
mov dword [esp + 0x70], 8
call fcn.005477e0
mov edx, dword [esi + 0x60]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x78], edx
jle 0x412f41
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
mov ebp, dword [eax + ebx*4]
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call fcn.00564b20
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push ebp
push eax
mov ecx, esi
call fcn.004126f0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x412f0e
lea ecx, [esp + 0x1c]
call fcn.00517ad0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00405850
jmp case.0x412ad4.6
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov ebx, eax
lea ebp, [esi + 0x218]
push ebx
mov ecx, ebp
call fcn.0054d2f0
test ebx, ebx
je 0x412f87
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
call fcn.00517a80
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0x70], 9
call fcn.005477e0
mov edx, dword [esi + 0x60]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x78], edx
jle 0x412f41
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
mov ebp, dword [eax + ebx*4]
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call fcn.00564b20
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push ebp
push eax
mov ecx, esi
call fcn.004126f0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x412fb3
jmp 0x412f41
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00585d70
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18