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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60c856
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
push eax
mov esi, ecx
call fcn.00412bb5
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
mov dword [esp + 0xbc], ebx
call fcn.0040b9c5
push dword [ebp + 0xc]
lea eax, [esp + 0x4c]
push eax
push esi
mov byte [esp + 0xc4], 1
call fcn.0040d7ce
lea eax, [esp + 0x28]
push eax
call fcn.004010a2
push 0x24
pop edx
mov ecx, eax
call fcn.00431ef5
mov byte [esp + 0xb8], 2
push dword [eax]
lea ecx, [esp + 0x90]
call fcn.0040518c
mov byte [esp + 0xb8], 4
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00405172
mov dword [esp + 0x14], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x641644
lea edi, [esp + 0x34]
call fcn.0040518c
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x8c]
call fcn.0054886d
add esp, 0x1c
mov byte [esp + 0xb8], 5
cmp dword [esp + 0x84], ebx
je 0x4124eb
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x412471
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x14]
call fcn.004050f0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x50]
call fcn.00412f8a
lea edi, [esp + 0x20]
mov esi, eax
call fcn.00584150
mov ecx, dword [esp + 0x10]
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00405172
test bl, bl
je 0x4124cf
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x34]
call fcn.0040ba2b
push 0
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 4
call fcn.004055c2
xor ebx, ebx
jmp 0x41241d
push ebx
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 4
call fcn.004055c2
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x10], ebx
test eax, eax
jle 0x4125a8
push dword [esp + 0x10]
lea esi, [esp + 0x34]
call fcn.0040ba07
cmp dword [eax + 0x18], 0x10
jb 0x412531
mov eax, dword [eax + 4]
jmp 0x412534
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004050f0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x50]
call fcn.00412f8a
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add ecx, 0xfffffff0
call fcn.00405172
mov ebx, dword [esp + 0x60]
test esi, esi
je 0x412570
cmp esi, dword [esp + 0x48]
je 0x412575
call fcn.005c4332
cmp edi, ebx
je 0x41258a
push edi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00412cf2
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jl 0x412519
xor ebx, ebx
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x60]
cmp eax, ebx
je 0x4125cc
cmp eax, dword [esp + 0x48]
je 0x4125d1
call fcn.005c4332
cmp dword [esp + 0x1c], esi
je 0x41261c
lea esi, [esp + 0x18]
call fcn.005469a8
push dword [eax]
lea ecx, [esp + 0x74]
call fcn.0040518c
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0xbc], 6
call fcn.0040ba2b
push ebx
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 4
call fcn.004055c2
call fcn.0041be35
jmp 0x4125ba
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x30]
call fcn.00412a87
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.004055c2
call fcn.0040bc29
push dword [esp + 0x30]
call fcn.0059a1ad
or dword [esp + 0xbc], 0xffffffff
pop ecx
lea eax, [esp + 0x48]
push eax
call fcn.00412c09
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 8