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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ba547
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x4d509c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x40], ebx
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 8]
cmp eax, 7
ja case.default.0x4124b8
jmp dword [eax*4 + 0x4128b8]
push 4
push str.null
lea eax, [ebx + 4]
call fcn.0040ec50
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004029f0
mov ecx, eax
lea edi, [esp + 0x78]
call fcn.00411c30
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 0
call fcn.0040eb60
mov ecx, edi
call fcn.00404c70
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00402b90
mov ecx, eax
lea edi, [esp + 0xcc]
call fcn.00411cd0
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 1
call fcn.0040eb60
mov ecx, edi
call fcn.00404c70
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00402d50
sub esp, 8
lea esi, [esp + 0x9c]
fstp qword [esp]
call fcn.00411d50
add esp, 8
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 2
call fcn.0040eb60
lea ecx, [esp + 0x94]
call fcn.00404c70
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx]
lea eax, [esp + 0xb0]
push eax
call fcn.00411ee0
add esp, 4
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 3
call fcn.0040eb60
lea ecx, [esp + 0xb0]
call fcn.00404c70
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ecx
call fcn.00402e60
movzx ecx, al
push ecx
lea esi, [esp + 0xec]
call fcn.00411e90
add esp, 4
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 4
call fcn.0040eb60
lea ecx, [esp + 0xe8]
call fcn.00404c70
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
add ebx, 4
push str.___:
mov eax, ebx
call fcn.0040ec50
mov ecx, dword [ebp + 8]
call fcn.00403040
mov edi, eax
xor esi, esi
test edi, edi
jle 0x4126c2
test esi, esi
jle 0x4126aa
push 1
push 0x4c9338
mov eax, ebx
call fcn.0040ec50
mov ecx, dword [ebp + 8]
push esi
call fcn.00403550
mov ecx, dword [esp + 0x40]
push eax
call fcn.00412470
inc esi
cmp esi, edi
jl 0x412698
push 1
push 0x4c933c
mov eax, ebx
call fcn.0040ec50
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x44]
push edx
call fcn.00403d00
push 1
lea esi, [ebx + 4]
push 0x4c9340
mov eax, esi
mov dword [esp + 0x148], 5
call fcn.0040ec50
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
call fcn.00406f10
mov ebx, dword [esp + 0x3c]
add ebx, 4
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x50], edi
jbe 0x412732
call fcn.0048877f
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x412740
cmp ecx, dword [esp + 0x44]
je 0x412749
call fcn.0048877f
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x3c], edi
je 0x412886
test ecx, ecx
jne 0x4127b8
call fcn.0048877f
mov ecx, dword [esp + 0x38]
xor eax, eax
mov edx, dword [esp + 0x3c]
cmp edx, dword [eax + 0x10]
jb 0x412774
call fcn.0048877f
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
cmp edi, dword [esp + 0x54]
jbe 0x412787
call fcn.0048877f
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x412791
cmp ecx, dword [esp + 0x44]
je 0x412796
call fcn.0048877f
cmp dword [esp + 0x3c], edi
je 0x4127aa
push 1
push 0x4c9338
mov eax, esi
call fcn.0040ec50
mov edi, 0x10
cmp dword [ebx + 0x14], edi
jb 0x4127bc
mov ecx, dword [ebx]
jmp 0x4127be
mov eax, dword [ecx]
jmp 0x412762
mov ecx, ebx
lea eax, [esp + 0x5c]
push eax
call fcn.00411ee0
add esp, 4
push 0
push eax
or eax, 0xffffffff
mov byte [esp + 0x148], 6
call fcn.0040eb60
mov byte [esp + 0x140], 5
cmp dword [esp + 0x74], edi
jb 0x4127f9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004867ca
add esp, 4
mov edx, dword [esp + 0x40]
cmp byte [edx + 0x20], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov edx, 0x4c9344
jne 0x412822
mov edx, 0x4c9348
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412827
sub eax, edi
push eax
push edx
mov eax, esi
call fcn.0040ec50
cmp dword [ebx + 0x14], 0x10
jb 0x412843
mov eax, dword [ebx]
jmp 0x412845
mov eax, ebx
mov ecx, dword [ebp + 8]
push eax
call fcn.00403940
mov ecx, dword [esp + 0x40]
push eax
call fcn.00412470
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x412882
call fcn.0048877f
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x412875
call fcn.0048877f
add dword [esp + 0x3c], 0x1c
add ebx, 0x1c
jmp 0x412723
mov eax, dword [eax]
jmp 0x412867
push 1
push 0x4c934c
mov eax, esi
call fcn.0040ec50
lea ecx, [esp + 0x44]
call fcn.00405a30
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4