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

Disassembly:
push 0xffffffffffffffff
push 0x4199bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], 0x41b528
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], esi
mov eax, dword [esp + 0xd0]
cmp eax, esi
mov dword [esp + 0xac], 1
jne 0x40c490
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
cmp dword [ecx], esi
jne 0x40c4b2
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret 0x24
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xb4]
push ebx
mov ebx, dword [esp + 0xbc]
push ebp
push edi
mov edi, dword [esp + 0x2c]
push ecx
push edx
push ebx
push eax
mov ecx, edi
call fcn.00408d00
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
and eax, 0x10
mov edi, eax
neg edi
sbb edi, edi
xor ecx, ecx
and edi, ebx
cmp eax, esi
setne cl
mov dword [esp + 0x30], eax
mov eax, 0x41b55c
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
dec ecx
and ecx, ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebp
mov ebx, dword [0x420f50]
test bl, 1
mov byte [esp + 0xb8], 3
jne 0x40c571
or ebx, 1
push str.___:____d_.__
lea ecx, [esp + 0x80]
mov dword [0x420f50], ebx
call fcn.00405d30
mov edx, dword [eax + 8]
mov dword [0x420f4c], edx
test bl, 2
jne 0x40c5b2
or ebx, 2
mov dword [0x420f50], ebx
mov eax, dword [0x420f4c]
push esi
push eax
push str.___:____d_.__
mov ecx, 0x420e20
mov byte [esp + 0xc4], 4
call fcn.0040c340
push 0x419ab0
call fcn.0040e6e3
add esp, 4
mov byte [esp + 0xb8], 3
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0xd8]
cmp eax, esi
jl 0x40c5cb
cmp dword [esp + 0x28], eax
jge 0x40ce6d
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xa0]
push edx
call fcn.0040a110
mov ebx, dword [esp + 0x10]
mov dword [ebx + 8], esi
mov ecx, dword [eax + 8]
cmp ecx, esi
mov byte [esp + 0xb8], 5
jle 0x40c60d
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x40c603
mov eax, 0x41c1b4
push esi
push ecx
push eax
mov ecx, ebx
call fcn.00406080
mov eax, dword [esp + 0xa8]
cmp eax, esi
mov byte [esp + 0xb8], 3
mov dword [esp + 0x9c], 0x41b528
je 0x40c634
push eax
call fcn.0040e80f
add esp, 4
mov ecx, dword [ebx + 8]
cmp ecx, esi
mov dword [esp + 0x9c], 0x41b524
jle 0x40ce6d
mov eax, dword [ebx + 4]
cmp dword [eax], esi
je 0x40ce6d
cmp dword [esp + 0x30], esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
je 0x40c6ef
cmp ecx, 3
jg 0x40c671
or eax, 0xffffffff
jmp 0x40c674
mov eax, dword [eax + 0xc]
sub edi, eax
mov esi, edi
je 0x40c6cf
push 0xc
call fcn.0040e151
mov edi, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x40c6b5
cmp dword [edi + 8], 3
jg 0x40c697
or ecx, 0xffffffff
jmp 0x40c69d
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0xc0]
lea ecx, [edx + ecx*2]
mov dword [eax], 0x41b554
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
jmp 0x40c6b7
xor eax, eax
push eax
lea ecx, [esp + 0x68]
call fcn.004068f0
mov eax, dword [esp + 0x14]
sub eax, esi
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x40c6d3
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, 2
jg 0x40c6e7
mov dword [esp + 0x34], 0xffffffff
jmp 0x40c762
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
jmp 0x40c75e
cmp ecx, 2
jg 0x40c6f9
or eax, 0xffffffff
jmp 0x40c6fc
mov eax, dword [eax + 8]
sub eax, edi
mov esi, eax
je 0x40c742
push 0xc
call fcn.0040e151
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40c72a
mov edx, dword [esp + 0xc0]
lea ecx, [edx + edi*2]
mov dword [eax], 0x41b554
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
jmp 0x40c72c
xor eax, eax
push eax
lea ecx, [esp + 0x68]
call fcn.004068f0
mov edx, dword [esp + 0x14]
add edx, esi
mov dword [esp + 0x24], edx
jmp 0x40c744
xor ebx, ebx
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 3
jg 0x40c758
mov dword [esp + 0x34], 0xffffffff
jmp 0x40c762
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
cmp dword [0x420e20], ebx
mov dword [esp + 0x14], edx
jne 0x40c774
mov dword [esp + 0x60], ebx
jmp 0x40c7f0
push 0x54
call fcn.0040e151
add esp, 4
cmp eax, ebx
je 0x40c7b5
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov ecx, 0x41b528
mov dword [eax], ecx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x34], ebx
jmp 0x40c7b7
xor eax, eax
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x44], 0xffffffff
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], ecx
test byte [0x420e24], 0x10
je 0x40c7e6
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
jmp 0x40c7ec
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], ebx
mov dword [esp + 0x60], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], edi
lea esp, [esp]
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x420e20
call fcn.0040a110
mov edx, dword [esp + 0x40]
test edx, edx
mov byte [esp + 0xb8], 6
jle 0x40cd34
mov ebx, dword [esp + 0x3c]
cmp dword [ebx], 0
je 0x40cd34
cmp edx, 2
jg 0x40c83f
or eax, 0xffffffff
jmp 0x40c842
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x20]
sub eax, edi
mov esi, eax
je 0x40c889
push 0xc
call fcn.0040e151
mov ebp, dword [esp + 0xcc]
add esp, 4
test eax, eax
je 0x40c873
lea edx, [ebp + edi*2]
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
mov dword [eax + 8], esi
jmp 0x40c875
xor eax, eax
push eax
lea ecx, [esp + 0x50]
call fcn.004068f0
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
jmp 0x40c890
mov ebp, dword [esp + 0xc8]
mov edi, 2
cmp edx, edi
jg 0x40c8a3
mov dword [esp + 0x20], 0xffffffff
jmp 0x40c8aa
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
cmp edx, edi
mov dword [esp + 0x18], edi
jg 0x40c8b7
or eax, 0xffffffff
jmp 0x40c8ba
mov eax, dword [ebx + 8]
movzx eax, word [ebp + eax*2 + 2]
add eax, 0xffffffdc
cmp eax, 0x57
ja case.0x40c8d2.37
movzx ecx, byte [eax + 0x40d0b8]
jmp dword [ecx*4 + 0x40d098]
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40caee
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
cmp edx, 3
jg 0x40c8fc
or ecx, 0xffffffff
jmp 0x40c902
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc]
cmp edx, edi
jg 0x40c90b
or esi, 0xffffffff
jmp 0x40c911
mov esi, dword [ebx + 4]
mov esi, dword [esi + 8]
cmp edx, 2
jg 0x40c91b
or edx, 0xffffffff
jmp 0x40c921
mov edx, dword [ebx + 4]
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0xc0]
sub ecx, esi
lea edx, [ebx + edx*2]
mov dword [eax + 8], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
call fcn.004068f0
jmp 0x40ccf0
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40caee
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 8], edi
jg 0x40c988
mov edx, dword [esp + 0xc0]
or ecx, 0xffffffff
mov dword [eax + 8], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
call fcn.004068f0
jmp 0x40ccf0
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0xc0]
mov dword [eax + 8], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
call fcn.004068f0
jmp 0x40ccf0
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40caee
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 8]
cmp ecx, 3
jg 0x40c9d3
or edx, 0xffffffff
jmp 0x40c9d9
mov edx, dword [esi + 4]
mov edx, dword [edx + 0xc]
cmp ecx, 3
jg 0x40c9e3
or ecx, 0xffffffff
jmp 0x40c9e9
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xc]
mov esi, dword [esp + 0xc0]
lea ecx, [esi + ecx*2]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc4]
sub ecx, edx
mov dword [eax + 8], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [eax], 0x41b554
call fcn.004068f0
jmp 0x40ccf0
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
cmp edx, 1
jg 0x40ca27
xor esi, esi
jmp 0x40ca31
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
test esi, esi
jl 0x40ca58
lea ecx, [esi + esi + 2]
lea eax, [esi*8 + 8]
lea esp, [esp]
cmp ecx, edx
jge 0x40ca4d
mov edi, dword [ebx + 4]
cmp dword [eax + edi], 0
jge 0x40ca58
dec esi
sub eax, 8
sub ecx, 2
test esi, esi
jge 0x40ca40
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40cce0
mov edi, dword [ebx + 8]
lea ecx, [esi + esi + 3]
cmp ecx, edi
jl 0x40ca7a
or ecx, 0xffffffff
jmp 0x40ca80
mov edx, dword [ebx + 4]
mov ecx, dword [edx + ecx*4]
lea edx, [esi + esi + 2]
cmp edx, edi
jl 0x40ccca
or esi, 0xffffffff
jmp 0x40ccd0
mov edi, dword [ebx + 4]
mov edx, dword [edi + edx*4]
mov edi, dword [esp + 0xc0]
mov dword [eax], 0x41b554
lea edx, [edi + edx*2]
sub ecx, esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x40cce2
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40caee
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [eax + 4], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [eax], 0x41b554
mov dword [eax + 8], edx
call fcn.004068f0
jmp 0x40ccf0
xor eax, eax
push eax
lea ecx, [esp + 0x50]
call fcn.004068f0
jmp 0x40ccf0
cmp edx, 3
jg 0x40cb09
or eax, 0xffffffff
jmp 0x40cb0c
mov eax, dword [ebx + 0xc]
cmp edx, edi
jg 0x40cb15
or ecx, 0xffffffff
jmp 0x40cb18
mov ecx, dword [ebx + 8]
sub eax, ecx
cmp edx, edi
mov dword [esp + 0x18], eax
jg 0x40cb27
or eax, 0xffffffff
jmp 0x40cb2a
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
lea ecx, [ebx - 3]
lea edx, [esp + 0x7c]
lea eax, [ebp + eax*2 + 4]
mov dword [esp + 0x84], ecx
push edx
mov ecx, edi
mov dword [esp + 0x80], 0x41b554
mov dword [esp + 0x84], eax
call fcn.00408c90
mov esi, eax
test esi, esi
mov dword [esp + 0x7c], 0x41b554
jle 0x40cbc5
cmp esi, dword [edi + 8]
jg 0x40cbc5
push 0xc
call fcn.0040e151
mov edi, eax
add esp, 4
test edi, edi
je 0x40cbbd
mov ebx, dword [esp + 0x10]
push esi
mov ecx, ebx
call fcn.00405df0
push esi
mov ecx, ebx
mov ebp, eax
call fcn.00405dd0
push esi
mov ecx, ebx
sub ebp, eax
call fcn.00405dd0
mov ecx, dword [esp + 0xc0]
lea eax, [ecx + eax*2]
mov dword [edi], 0x41b554
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
push edi
jmp 0x40cce3
xor edi, edi
push edi
jmp 0x40cce3
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40cce0
cmp dword [esp + 0x40], 2
jg 0x40cbe3
or ecx, 0xffffffff
jmp 0x40cbea
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 8]
lea ecx, [ebp + ecx*2]
mov dword [eax], 0x41b554
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
jmp 0x40cce2
mov edx, dword [esp + 0x20]
mov edi, 1
xor esi, esi
mov dword [esp + 0x18], edi
lea ecx, [ebp + edx*2 + 2]
mov ax, word [ecx]
cmp ax, 0x30
jb 0x40cc34
cmp ax, 0x39
ja 0x40cc34
movzx eax, ax
inc edi
lea edx, [esi + esi*4]
add ecx, 2
cmp edi, 3
lea esi, [eax + edx*2 - 0x30]
jle 0x40cc12
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 8]
cmp esi, ecx
mov dword [esp + 0x18], edi
jle 0x40cc6a
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
dec edi
cmp esi, ecx
jg 0x40cc43
test esi, esi
mov dword [esp + 0x18], edi
jne 0x40cc6a
mov edi, 1
jmp case.0x40c8d2.36
cmp edi, 1
jne 0x40cca1
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40caee
mov dword [eax], 0x41b554
mov dword [eax + 4], 0x41b79e
push eax
lea ecx, [esp + 0x50]
mov dword [eax + 8], 1
call fcn.004068f0
jmp 0x40ccf0
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40cce0
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 8]
lea ecx, [esi + esi + 3]
cmp ecx, edi
jl 0x40ca7a
or ecx, 0xffffffff
jmp 0x40ca80
mov esi, dword [ebx + 4]
mov esi, dword [esi + edx*4]
cmp edx, edi
jl 0x40ca94
or edx, 0xffffffff
jmp 0x40ca9a
xor eax, eax
push eax
lea ecx, [esp + 0x50]
call fcn.004068f0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
add edx, edi
test eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0xb8], 3
mov dword [esp + 0x38], 0x41b528
je 0x40cd1b
push eax
call fcn.0040e80f
add esp, 4
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x38], 0x41b524
jmp 0x40c800
mov eax, dword [esp + 0x44]
test eax, eax
mov byte [esp + 0xb8], 3
mov dword [esp + 0x38], 0x41b528
je 0x40cd55
push eax
call fcn.0040e80f
add esp, 4
mov ebx, dword [esp + 0xcc]
cmp esi, ebx
mov dword [esp + 0x38], 0x41b524
jge 0x40cda4
push 0xc
call fcn.0040e151
add esp, 4
test eax, eax
je 0x40cd90
mov ecx, dword [esp + 0xc8]
lea edx, [ecx + esi*2]
sub ebx, esi
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
jmp 0x40cd92
xor eax, eax
push eax
lea ecx, [esp + 0x50]
call fcn.004068f0
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40cdd5
lea esi, [edi - 1]
test esi, esi
jl 0x40cdfe
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + esi*4]
push eax
lea ecx, [esp + 0x68]
call fcn.004068f0
mov ecx, dword [ebp + esi*4]
sub edi, dword [ecx + 8]
dec esi
jns 0x40cdb7
mov dword [esp + 0x14], edi
jmp 0x40cdfe
xor esi, esi
test edi, edi
jle 0x40cdfe
mov ebx, dword [esp + 0x14]
nop
mov edx, dword [ebp + esi*4]
push edx
lea ecx, [esp + 0x68]
call fcn.004068f0
mov eax, dword [ebp + esi*4]
add ebx, dword [eax + 8]
inc esi
cmp esi, edi
jl 0x40cde0
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x40ce59
mov eax, dword [esi + 0x34]
test eax, eax
mov ebx, 0x41b528
mov dword [esi + 0x28], ebx
je 0x40ce1e
push eax
call fcn.0040e80f
add esp, 4
mov edi, 0x41b524
mov dword [esi + 0x28], edi
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esi + 0x14], ebx
je 0x40ce39
push eax
call fcn.0040e80f
add esp, 4
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esi], ebx
je 0x40ce4e
push eax
call fcn.0040e80f
add esp, 4
push esi
mov dword [esi], edi
call fcn.0040e14c
add esp, 4
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0x28], eax
xor esi, esi
jmp 0x40c5b6
cmp dword [esp + 0x30], esi
mov ebx, dword [esp + 0x78]
je 0x40cea3
cmp ebx, edi
jge 0x40cedb
push 0xc
call fcn.0040e151
add esp, 4
cmp eax, esi
je 0x40cecf
mov ecx, dword [esp + 0xc0]
lea edx, [ecx + ebx*2]
sub edi, ebx
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
mov dword [eax + 8], edi
jmp 0x40ced1
cmp edi, ebx
jge 0x40cedb
push 0xc
call fcn.0040e151
add esp, 4
cmp eax, esi
je 0x40cecf
mov ecx, dword [esp + 0xc0]
lea edx, [ecx + edi*2]
sub ebx, edi
mov dword [eax], 0x41b554
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
jmp 0x40ced1
xor eax, eax
lea ecx, [esp + 0x64]
push eax
call fcn.004068f0
cmp dword [esp + 0xe0], esi
jne 0x40cefc
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x40cefc
mov ecx, edi
call fcn.00405d70
push edi
call fcn.0040e14c
add esp, 4
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0xd0]
mov ebx, dword [esp + 0x70]
xor esi, esi
xor eax, eax
cmp edx, esi
mov dword [edi], esi
jle 0x40cf22
mov ecx, dword [ebx + eax*4]
mov ecx, dword [ecx + 8]
add dword [edi], ecx
inc eax
cmp eax, edx
jl 0x40cf15
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], 0x41b560
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov edx, dword [edi]
push esi
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xc0], 7
call fcn.00405f20
cmp dword [esp + 0x30], esi
mov dword [esp + 0x40], esi
je 0x40cf95
mov esi, dword [esp + 0x6c]
dec esi
js 0x40cfd5
mov eax, dword [ebx + esi*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40cf76
mov eax, 0x41b588
push 0
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00405e40
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x40cf90
mov eax, dword [ecx]
push 1
call dword [eax]
dec esi
jns 0x40cf64
jmp 0x40cfd5
mov eax, dword [esp + 0x6c]
xor esi, esi
test eax, eax
jle 0x40cfd5
nop
mov eax, dword [ebx + esi*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40cfb2
mov eax, 0x41b588
push 0
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00405e40
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x40cfcc
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x6c]
inc esi
cmp esi, eax
jl 0x40cfa0
mov eax, dword [edi]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov word [esi + eax*2], 0
mov eax, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x40cff5
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x10]
push 2
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00406080
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
cmp eax, edx
jle 0x40d01b
mov dword [esp + 0x1c], eax
jmp 0x40d023
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
push 0
push 1
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00406080
mov eax, dword [esp + 0x28]
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.00406080
test ebp, ebp
je 0x40d058
push ebp
call fcn.0040e80f
add esp, 4
test ebx, ebx
je 0x40d065
push ebx
call fcn.0040e80f
add esp, 4
mov eax, dword [esp + 0x94]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x40d07c
push eax
call fcn.0040e80f
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret 0x24