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

Disassembly:
push 0xffffffffffffffff
push 0x611c80
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x682d00]
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.0040b380
mov ebp, dword [esp + 0x80]
push ebp
push edi
mov ecx, esi
call fcn.0040b410
mov edx, dword [edi]
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
add eax, 0xfffffffd
cmp eax, 0x28
ja case.0x412774.6
movzx ecx, byte [eax + 0x412cf8]
jmp dword [ecx*4 + 0x412cb8]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push edx
push edi
push eax
mov ecx, esi
call fcn.0040b950
jmp case.0x412774.6
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push ecx
push edi
push edx
mov ecx, esi
call fcn.0040bc30
jmp case.0x412774.6
cmp dword [esi + 0x2bc], ebx
mov ecx, esi
jle 0x4127ff
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040b5c0
test eax, eax
jne 0x4127e3
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
push 1
push ecx
push edi
push edx
mov ecx, esi
call fcn.00412390
jmp case.0x412774.6
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
push 0
push eax
push edi
push ecx
mov ecx, esi
call fcn.00412390
jmp case.0x412774.6
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push edi
push eax
call fcn.00412390
jmp case.0x412774.6
lea ecx, [esp + 0x38]
call fcn.005405b0
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x70], 0
call fcn.0055cd90
push 0xff
lea ecx, [esp + 0x3c]
call fcn.00542880
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.0040f0d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00543410
jmp case.0x412774.6
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push edx
push edi
push eax
mov ecx, esi
call fcn.0040f0d0
jmp case.0x412774.6
lea ecx, [esp + 0x1c]
call fcn.0055e0a0
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], 1
call fcn.00563d50
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.00412390
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00563400
jmp case.0x412774.6
mov ecx, edi
call fcn.00584a80
mov ebx, eax
push ebx
lea ecx, [esp + 0x3c]
call fcn.00540900
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.0040f0d0
test ebx, ebx
je 0x41285d
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
jmp 0x41285d
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 0x4129a8
lea ebx, [ebx]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x3c]
call fcn.00540900
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.0040f0d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00543410
inc ebx
cmp ebx, ebp
jl 0x412960
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp case.0x412774.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 0x412a38
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x3c]
call fcn.00540900
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.0040f0d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00543410
inc ebx
cmp ebx, ebp
jl 0x4129f0
mov eax, dword [esp + 0x78]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp case.0x412774.6
lea ecx, [esp + 0x38]
call fcn.005405b0
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x70], 5
call fcn.00583730
jmp 0x412844
lea ecx, [esp + 0x1c]
call fcn.00522060
lea edx, [esp + 0x1c]
mov ebx, 6
push edx
mov ecx, edi
mov dword [esp + 0x70], ebx
call fcn.00522bf0
lea ecx, [esp + 0x38]
call fcn.0055e0a0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 7
call fcn.00563d50
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.00412390
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], bl
call fcn.00563400
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00522100
jmp case.0x412774.6
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x412ca1
test ebp, ebp
je 0x412b03
test byte [ebp + 0x58], 8
je 0x412b03
mov ebx, 1
mov ecx, dword [esp + 0x74]
push eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00412550
jmp case.0x412774.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.0x412b33
jmp dword [eax*4 + 0x412d24]
push ebx
lea ecx, [esi + 0x218]
call fcn.0054a390
jmp case.default.0x412b33
push ebx
lea ecx, [esi + 0x218]
call fcn.0054a320
jmp case.default.0x412b33
push ebx
lea ecx, [esi + 0x218]
call fcn.0054a400
jmp case.default.0x412b33
push ebx
lea ecx, [esi + 0x218]
call fcn.0054a470
test ebx, ebx
je 0x412b7e
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
call fcn.00516940
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x218]
mov dword [esp + 0x70], 8
call fcn.00546130
mov edx, dword [esi + 0x60]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x78], edx
jle 0x412be1
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.00563470
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push ebp
push eax
mov ecx, esi
call fcn.00412390
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x412bae
lea ecx, [esp + 0x1c]
call fcn.00516990
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004925b0
jmp case.0x412774.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.0054bc40
test ebx, ebx
je 0x412c27
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1c]
call fcn.00516940
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0x70], 9
call fcn.00546130
mov edx, dword [esi + 0x60]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x78], edx
jle 0x412be1
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.00563470
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
push 0
push edx
push ebp
push eax
mov ecx, esi
call fcn.00412390
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x412c53
jmp 0x412be1
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0051a2f0
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