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

Disassembly:
sub esp, 0xc4
xor ecx, ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0xc0], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
cmp dword [esp + 0xd4], ecx
jne 0x413bb2
cmp dword [esp + 0xd0], ebx
mov dword [esp + 0x2c], ebx
jae 0x413bf9
cmp ebp, 0xa
ja 0x413bf9
mov edx, dword [esp + 0xd4]
or edx, dword [esp + 0xd0]
je 0x413bf9
mov dword [esp + 0x48], 1
mov ebx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
add ebx, 0x30
adc edx, ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x78], bl
mov dword [esp + 0x4c], ecx
jmp 0x413cff
mov dword [esp + 0xc8], ebp
mov edx, dword [esp + 0xd4]
or edx, dword [esp + 0xd0]
mov ebp, 0x40
je 0x413cdc
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
dec ebp
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
push esi
push edi
call fcn.004b8a5a
pop edi
pop esi
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
mov byte [esp + 0xbf], bl
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
push esi
push edi
call fcn.004b8a5a
pop edi
pop esi
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
cmp byte [esp + 0xbf], 0xa
jae 0x413cad
cmp ebp, 0x40
jae 0x414161
movzx ecx, byte [esp + 0xbf]
add cl, 0x30
mov byte [esp + ebp + 0x78], cl
mov edx, dword [esp + 0xd4]
or edx, dword [esp + 0xd0]
jne 0x413c21
jmp 0x413cdc
mov edx, 0x40
cmp ebp, edx
jae 0x414189
cmp byte [edi + 0x14], 0x78
lea eax, [esp + ebp + 0x78]
mov ecx, 0x57
je 0x413cce
mov ecx, 0x37
movzx edx, byte [esp + 0xbf]
add cl, dl
mov byte [eax], cl
jmp 0x413c97
cmp ebp, 0x40
ja 0x4141ad
mov ecx, 0x40
sub ecx, ebp
lea edx, [esp + ebp + 0x78]
mov dword [esp + 0x48], ecx
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 4]
mov ecx, 0x7ffffffe
cmp edx, ecx
mov eax, 1
je 0x413d12
mov eax, edx
mov byte [esp + 0xbe], 0
movzx ebx, byte [edi + 0x17]
mov dword [esp + 0x2c], ebx
and bl, 1
xor bl, 1
je 0x413d57
mov ebx, dword [esp + 0x2c]
bt ebx, 1
jae 0x413d38
cmp edx, ecx
je 0x413d3c
xor edx, edx
jmp 0x413d41
mov edx, 1
cmp dl, 1
mov ecx, 0x30
jge 0x413d50
mov ecx, 0x20
mov byte [esp + 0xbe], cl
xor ebx, ebx
cmp ebp, 0xa
mov byte [esp + 0xbc], bl
jne 0x413d94
cmp byte [esp + 0xc0], 0
je 0x413d76
mov ebx, 0x2d
jmp 0x413de8
movzx ecx, byte [edi + 0x17]
bt ecx, 3
jae 0x413d87
mov ebx, 0x2b
jmp 0x413de8
bt ecx, 2
jae 0x413de8
mov ebx, 0x20
jmp 0x413de8
cmp ebp, 0x10
jne 0x413dc5
bt dword [edi + 0x17], 4
jae 0x413dc5
cmp dword [esp + 0x48], 0
je 0x413dc5
cmp byte [edi + 0x14], 0x78
mov ebx, 0x30
mov edx, 0x78
je 0x413dbc
mov edx, 0x58
mov byte [esp + 0xbc], dl
jmp 0x413de8
cmp ebp, 8
jne 0x413de8
bt dword [edi + 0x17], 4
jae 0x413de8
cmp eax, 1
jle 0x413ddc
cmp dword [esp + 0x48], eax
jb 0x413de8
cmp dword [esp + 0x48], 0
je 0x413de8
mov ebx, 0x30
cmp dword [esp + 0x48], eax
jae 0x413df6
mov ebp, eax
sub ebp, dword [esp + 0x48]
jmp 0x413df8
xor ebp, ebp
test bl, bl
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
setne dl
and edx, 1
cmp byte [esp + 0xbc], 0
setne cl
and ecx, 1
add edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], 0
bt dword [edi + 0x17], 5
setb dl
test dl, 1
je 0x413ee1
mov edx, dword [edi]
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x48]
mov dword [esp + 0x34], edx
cmp dword [esp + 0x48], 0
je 0x413e66
mov eax, dword [esp + 0x48]
lea eax, [eax - 1]
xor edx, edx
div dword [edi + 8]
jmp 0x413e68
xor eax, eax
add ecx, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], ecx
cmp ecx, edx
jae 0x413ea7
mov eax, dword [edi]
mov ecx, dword [edi + 8]
inc ecx
sub eax, dword [esp + 0x58]
cdq
idiv ecx
cmp edx, 1
setb al
movzx eax, al
cmp byte [esp + 0xbe], 0x30
sete cl
and ecx, 1
imul ecx
mov edx, dword [edi]
add eax, edx
mov dword [esp + 0x54], eax
cmp byte [esp + 0xbe], 0x30
jne 0x413ec4
mov eax, dword [esp + 0x54]
dec eax
sub eax, dword [esp + 0x58]
mov ecx, dword [edi + 8]
inc ecx
xor edx, edx
div ecx
jmp 0x413edb
cmp dword [esp + 0x48], 0
je 0x413ed9
mov edx, dword [esp + 0x48]
lea eax, [edx - 1]
xor edx, edx
div dword [edi + 8]
jmp 0x413edb
xor eax, eax
mov dword [esp + 0x50], eax
jmp 0x413efd
mov edx, dword [esp + 0x58]
mov eax, dword [edi]
add edx, dword [esp + 0x48]
test eax, eax
js 0x413ef3
cmp eax, edx
jae 0x413ef7
mov ecx, edx
jmp 0x413ef9
mov ecx, eax
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x58]
add edx, ebp
mov ecx, dword [esp + 0x54]
add edx, dword [esp + 0x48]
add edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x6c], ecx
jle 0x413f43
cmp byte [esp + 0xbe], 0x30
jne 0x413f27
add ebp, dword [esp + 0x6c]
jmp 0x413f43
cmp byte [esp + 0xbe], 0
je 0x413f3b
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x68], edx
jmp 0x413f43
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x64], ecx
mov byte [esp + 0xbd], bl
xor ebx, ebx
cmp dword [esp + 0x68], ebx
je 0x413f62
push 0x20
mov eax, esi
call fcn.00412030
inc ebx
cmp ebx, dword [esp + 0x68]
jb 0x413f52
mov bl, byte [esp + 0xbd]
test bl, bl
je 0x413f75
push ebx
mov eax, esi
call fcn.00412030
mov bl, byte [esp + 0xbc]
test bl, bl
je 0x413f88
push ebx
mov eax, esi
call fcn.00412030
bt dword [edi + 0x17], 5
jae 0x414042
test ebp, ebp
je 0x413fa1
push 0x30
mov eax, esi
call fcn.00412030
dec ebp
mov dword [esp + 0x70], 0
mov ebx, dword [esp + 0x54]
dec ebx
sub ebx, dword [esp + 0x58]
sub ebx, dword [esp + 0x50]
test ebp, ebp
je 0x414056
mov eax, ebx
cdq
idiv dword [edi + 8]
test edx, edx
jne 0x414028
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0xb8]
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 0xb8], 0xffffffff
push edx
call fcn.004096a0
cmp eax, 4
jbe 0x414018
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xd5f
mov dword [esp], 0x4cc290
call fcn.00462c8c
lea ecx, [esp + 0xb8]
push ecx
push eax
mov eax, esi
call fcn.00409800
push 0x30
mov eax, esi
call fcn.00412030
dec ebx
inc dword [esp + 0x70]
cmp dword [esp + 0x70], ebp
jb 0x413fbe
jmp 0x414056
xor ebx, ebx
test ebp, ebp
je 0x414056
push 0x30
mov eax, esi
call fcn.00412030
inc ebx
cmp ebx, ebp
jb 0x414048
bt dword [edi + 0x17], 5
jae 0x414111
xor ebx, ebx
cmp dword [esp + 0x48], ebx
je 0x414130
test ebx, ebx
jne 0x414082
cmp dword [esp + 0x6c], 0
jle 0x4140ec
cmp byte [esp + 0xbe], 0x30
jne 0x4140ec
mov eax, dword [esp + 0x48]
sub eax, ebx
xor edx, edx
div dword [edi + 8]
test edx, edx
jne 0x4140ec
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x74]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], 0xffffffff
push edx
call fcn.004096a0
mov ebp, eax
cmp eax, 4
jbe 0x4140dd
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xd5f
mov dword [esp], 0x4cc290
call fcn.00462c8c
lea ecx, [esp + 0x74]
mov eax, ebp
push ecx
push eax
mov eax, esi
call fcn.00409800
cmp ebx, dword [esp + 0x48]
jae 0x4141d5
mov ecx, dword [esp + 0x4c]
mov eax, esi
push dword [ebx + ecx]
call fcn.00412030
inc ebx
cmp ebx, dword [esp + 0x48]
jb 0x41406d
jmp 0x414130
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00409800
xor ebx, ebx
cmp dword [esp + 0x64], ebx
je 0x414148
push 0x20
mov eax, esi
call fcn.00412030
inc ebx
cmp ebx, dword [esp + 0x64]
jb 0x414138
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 0xc4
ret 0x14
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0x91a
mov dword [esp], 0x4cc290
call fcn.00462c8c
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0x91c
mov dword [esp], 0x4cc290
call fcn.00462c8c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x91e
mov dword [esp], 0x4cc290
call fcn.00462c8c
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x98e
mov dword [esp], 0x4cc290
call fcn.00462c8c
int3