Function at 0x40d9d0
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dcfbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e8
mov eax, dword [esp + 0x4f8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], edi
call fcn.004c57f5
mov eax, dword [0x52251c]
xor ebp, ebp
mov dword [esp + 0x500], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x500], 3
call fcn.004c000c
mov dword [esp + 0x60], 0x4edc4c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
lea ecx, [esp + 0x74]
mov byte [esp + 0x500], 5
call fcn.004c000c
mov ecx, dword [edi + 0x40]
push 1
mov dword [esp + 0x44], ecx
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x508], 6
call fcn.004bd113
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x508], 7
call fcn.004bd68d
mov esi, dword [esp + 0x2c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40dabc
test cl, cl
je 0x40dab8
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40dabc
add eax, 2
add esi, 2
test cl, cl
jne 0x40da94
xor eax, eax
jmp 0x40dac1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
lea ecx, [esp + 0x24]
setne bl
call fcn.004c5787
lea ecx, [esp + 0x2c]
mov byte [esp + 0x500], 6
call fcn.004c5787
test bl, bl
je 0x40daef
push 0x5c
lea ecx, [esp + 0x24]
call fcn.004c5b8a
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call fcn.004c58c0
push 0x51c590
lea ecx, [esp + 0x24]
call fcn.004c5b63
mov eax, dword [0x52790c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [eax + 0x538]
mov ecx, dword [eax + 0x258]
dec esi
neg esi
sbb esi, esi
and esi, 2
add esi, 0x14
cmp ecx, ebp
mov dword [esp + 0x2c], esi
jne 0x40dd77
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xa0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40e010
mov ebp, dword [esp + 0x50c]
mov dword [esp + 0x30], ebp
jmp 0x40db70
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0xa0]
test esi, eax
jne 0x40dd04
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x10]
push eax
call fcn.004c5910
lea ecx, [esp + 0x24]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.004bd68d
mov edx, dword [eax]
push str..url
push edx
call fcn.004ad810
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call fcn.004c5787
test bl, bl
je 0x40dc59
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004c59b6
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x504], 8
call fcn.004c58c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x500], 6
call fcn.004c5787
lea eax, [esp + 0x38]
push eax
call fcn.0041b4b0
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
jne 0x40dd57
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.004c0259
mov eax, dword [esp + 0x68]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x68]
call fcn.0040d4c0
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [edi + 0x1a4]
mov dword [eax + esi*4], ebp
call fcn.004bfeb9
inc ebp
jmp 0x40dd57
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40dd57
lea edx, [esp + 0x3c]
push 4
push edx
lea ecx, [esp + 0x18]
call fcn.004bd68d
mov eax, dword [eax]
push str..lnk
push eax
call fcn.004ad810
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
ret
call fcn.004c5787
test bl, bl
je 0x40dd57
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004c59b6
push eax
lea ecx, [edi + 0x1a4]
mov byte [esp + 0x504], 9
call fcn.004bfeb9
lea ecx, [esp + 0x28]
mov byte [esp + 0x500], 6
call fcn.004c5787
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.004c0259
mov eax, dword [esp + 0x68]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x68]
call fcn.0040d4c0
mov eax, dword [esp + 0x64]
mov dword [eax + esi*4], ebp
inc ebp
jmp 0x40dd57
test al, 0x10
je 0x40dd57
mov ecx, dword [0x52790c]
cmp dword [ecx + 0x538], 1
je 0x40dd1b
test al, 2
jne 0x40dd57
lea edx, [esp + 0xcc]
push 0x51c58c
push edx
call ebx
test eax, eax
je 0x40dd57
lea eax, [esp + 0xcc]
push 0x51c588
push eax
call ebx
test eax, eax
je 0x40dd57
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xcc]
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.004c022d
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40db66
jmp 0x40e003
lea ecx, [esp + 0xa0]
push 0x104
push ecx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004c54fc
call fcn.0041af20
add esp, 0xc
lea eax, [esp + 0x2a8]
lea ecx, [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40e010
mov ebp, dword [esp + 0x50c]
mov dword [esp + 0x30], ebp
jmp 0x40ddd1
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x2a8]
test esi, eax
jne 0x40df68
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5937
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.004bd68d
mov ecx, dword [eax]
push str..url
push ecx
call fcn.004ad810
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call fcn.004c5787
test bl, bl
je 0x40deba
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.004c59b6
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x504], 0xa
call fcn.004c58c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x500], 6
call fcn.004c5787
lea edx, [esp + 0x38]
push edx
call fcn.0041b4b0
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
jne 0x40dfe8
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004c0259
mov eax, dword [esp + 0x68]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x68]
call fcn.0040d4c0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x1a4]
mov dword [edx + esi*4], ebp
call fcn.004bfeb9
inc ebp
jmp 0x40dfe8
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40dfe8
lea ecx, [esp + 0x30]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.004bd68d
mov edx, dword [eax]
push str..lnk
push edx
call fcn.004ad810
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.004c5787
test bl, bl
je 0x40dfe8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004c59b6
push eax
lea ecx, [edi + 0x1a4]
mov byte [esp + 0x504], 0xb
call fcn.004bfeb9
lea ecx, [esp + 0x18]
mov byte [esp + 0x500], 6
call fcn.004c5787
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004c0259
mov eax, dword [esp + 0x68]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x68]
call fcn.0040d4c0
mov edx, dword [esp + 0x64]
mov dword [edx + esi*4], ebp
inc ebp
jmp 0x40dfe8
test al, 0x10
je 0x40dfe8
mov ecx, dword [0x52790c]
cmp dword [ecx + 0x538], 1
je 0x40df7f
test al, 2
jne 0x40dfe8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x2d4]
push 0x51c58c
push edx
call esi
test eax, eax
je 0x40dfe8
lea eax, [esp + 0x2d4]
push 0x51c5a0
push eax
call esi
test eax, eax
je 0x40dfe8
lea ecx, [esp + 0x2d4]
push ecx
lea ecx, [esp + 0x28]
call fcn.004c5847
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x508], 0xc
call fcn.004c0259
lea ecx, [esp + 0x24]
mov byte [esp + 0x500], 6
call fcn.004c5787
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x2a8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ddcd
push esi
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
mov edx, dword [0x52251c]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], ebp
mov ecx, dword [0x52790c]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x504], 0xd
call fcn.00451230
mov ebx, dword [esp + 0x510]
test eax, eax
je 0x40e382
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
push eax
push edx
call fcn.004bd5d4
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x504], 0xe
call fcn.004c58c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x500], 0xd
call fcn.004c5787
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x88]
push eax
call fcn.00483760
test eax, eax
je 0x40e382
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], ebp
cmp eax, ebp
jle 0x40e382
mov ebp, dword [esp + 0x18]
jmp 0x40e0c8
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x510]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x94]
shl eax, 5
mov edx, dword [eax + ecx + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5910
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x40e20a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40e20a
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx + esi*4]
push edx
call fcn.004ad810
add esp, 8
test eax, eax
jne 0x40e1fd
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], 1
test eax, eax
jne 0x40e1d1
mov eax, dword [esp + 0x50]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004c58c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bd709
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x504], 0xf
call fcn.004c58c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x500], 0xd
call fcn.004c5787
push esi
lea ecx, [esp + 0x50]
call fcn.0040e900
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
push edx
push ecx
call fcn.004c59b6
call fcn.0041bdf0
add esp, 4
lea ecx, [edi + 0x168]
push 0xffff0002
push ebx
push 0
push 0
push 0
push eax
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0x23
call fcn.004bec8f
mov ebp, eax
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + esi*4]
lea ecx, [edi + 0x168]
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push ebp
call fcn.004bec41
mov edx, dword [esp + 0x50]
lea ecx, [edx + esi*4]
call fcn.004c5712
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
jl 0x40e100
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x40e368
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40e368
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx + ebx*4]
push edx
call fcn.004ad810
add esp, 8
test eax, eax
jne 0x40e357
mov edx, dword [esp + 0x510]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
push 0xffff0002
mov eax, dword [eax + ebx*4]
push edx
push 0
push 0
push 0
push 0xd
lea esi, [ecx + 0x168]
push 0xb
push eax
push 0x23
mov ecx, esi
call fcn.004bec8f
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
mov ebp, eax
push 0
push 4
push ebp
mov ecx, esi
call fcn.004bec41
mov eax, dword [0x52790c]
mov ecx, dword [esp + 0x78]
lea edi, [eax + 0x6f8]
lea edx, [ecx + ebx*4]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.004c59b6
push 0x51c594
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x50c], 0x10
call fcn.004c5a1c
mov edi, dword [edi]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x40e2fb
test cl, cl
je 0x40e2f7
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x40e2fb
add eax, 2
add edi, 2
test cl, cl
jne 0x40e2d3
xor eax, eax
jmp 0x40e300
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.004c5787
lea ecx, [esp + 0x3c]
mov byte [esp + 0x500], 0xd
call fcn.004c5787
test bl, bl
je 0x40e343
mov eax, dword [esp + 0x44]
push 0
push 0x10
push 0x10
push 0
push 0
push 0
push 8
push ebp
mov ecx, esi
mov dword [eax + 0x1e8], ebp
call fcn.004bec41
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
lea ecx, [ecx + edx*4]
call fcn.004c5712
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x40e222
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x90]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x40e0bd
jmp 0x40e386
mov ebp, dword [esp + 0x18]
mov eax, dword [0x52251c]
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x7c]
mov byte [esp + 0x500], 0x11
test edi, edi
jle 0x40e402
lea ebx, [edi - 1]
mov esi, 1
xor edi, edi
cmp ebx, esi
jl 0x40e402
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + esi*4]
mov eax, dword [eax + esi*4 - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jle 0x40e3f9
mov ecx, dword [esp + 0x78]
lea edx, [ecx + esi*4 - 4]
lea ecx, [esp + 0x48]
push edx
call fcn.004c58c0
mov eax, dword [esp + 0x78]
lea eax, [eax + esi*4]
push eax
lea ecx, [eax - 4]
call fcn.004c58c0
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edx + esi*4]
call fcn.004c58c0
mov edi, esi
inc esi
cmp esi, ebx
jle 0x40e3ad
test edi, edi
jg 0x40e39f
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40e514
mov eax, dword [esp + 0x14]
mov esi, 1
dec eax
mov dword [esp + 0x14], 0
cmp eax, esi
mov dword [esp + 0x3c], eax
jl 0x40e514
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + esi*4 - 4]
mov ebx, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
mov edi, dword [edx - 8]
mov eax, dword [ebx - 8]
cmp edi, eax
jne 0x40e454
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, eax
jmp 0x40e4a8
add eax, 0xfffffffc
lea edx, [esp + 0x28]
push eax
push edx
call fcn.004bd709
mov ebx, dword [eax]
mov ecx, dword [esp + 0x50]
add edi, 0xfffffffc
lea eax, [esp + 0x18]
push edi
push eax
lea ecx, [ecx + esi*4 - 4]
mov byte [esp + 0x508], 0x12
call fcn.004bd709
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004c5787
lea ecx, [esp + 0x28]
mov byte [esp + 0x500], 0x11
call fcn.004c5787
test edi, edi
jle 0x40e4fb
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x48]
lea eax, [edx + esi*4 - 4]
push eax
call fcn.004c58c0
mov ecx, dword [esp + 0x50]
lea eax, [ecx + esi*4]
push eax
lea ecx, [eax - 4]
call fcn.004c58c0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x48]
push edx
lea ecx, [eax + esi*4]
call fcn.004c58c0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], esi
mov edx, dword [ecx + esi*4 - 4]
lea eax, [ecx + esi*4 - 4]
mov ecx, dword [ecx + esi*4]
mov dword [eax], ecx
mov eax, dword [esp + 0x64]
mov dword [eax + esi*4], edx
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jle 0x40e430
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x40e412
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x40e647
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40e632
mov ecx, dword [esp + 0x510]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 0xd
lea esi, [ebx + 0x168]
push 0xb
push eax
push 0x23
mov ecx, esi
call fcn.004bec8f
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
mov ebp, eax
push 0
push 4
push ebp
mov ecx, esi
call fcn.004bec41
mov edx, dword [0x52790c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
lea edi, [edx + 0x6f8]
lea edx, [eax + ecx*4]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004c59b6
push 0x51c594
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x50c], 0x13
call fcn.004c5a1c
mov edi, dword [edi]
mov eax, dword [eax]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40e5e8
test cl, cl
je 0x40e5e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40e5e8
add eax, 2
add edi, 2
test cl, cl
jne 0x40e5c4
xor eax, eax
jmp 0x40e5ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x37]
call fcn.004c5787
lea ecx, [esp + 0x28]
mov byte [esp + 0x500], 0x11
call fcn.004c5787
mov al, byte [esp + 0x37]
test al, al
je 0x40e632
push 0
push 0x10
push 0x10
push 0
push 0
push 0
push 8
push ebp
mov ecx, esi
mov dword [ebx + 0x1e8], ebp
call fcn.004bec41
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40e52c
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x40e734
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40e727
test edi, edi
jne 0x40e707
push eax
lea ecx, [esp + 0x14]
call fcn.004c58c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bd709
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x504], 0x14
call fcn.004c58c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x500], 0x11
call fcn.004c5787
push esi
lea ecx, [esp + 0x50]
call fcn.0040e900
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push edx
push ecx
call fcn.004c59b6
call fcn.0041bdf0
mov ecx, dword [esp + 0x514]
add esp, 4
mov edx, dword [esp + 0x10]
push 0xffff0002
push ecx
push edi
push edi
push edi
push eax
push eax
push edx
push 0x23
lea ecx, [ebx + 0x168]
call fcn.004bec8f
mov ebp, eax
mov eax, dword [esp + 0x64]
lea ecx, [ebx + 0x168]
mov eax, dword [eax + esi*4]
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push ebp
call fcn.004bec41
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
jl 0x40e659
lea ecx, [esp + 0x48]
mov byte [esp + 0x500], 0xd
call fcn.004c5787
mov eax, dword [esp + 0x94]
mov byte [esp + 0x500], 0x15
test eax, eax
je 0x40e775
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x40e850
push ecx
push 0x20
push eax
call fcn.004add25
push esi
call fcn.004c5de7
add esp, 4
mov eax, dword [esp + 0x98]
test eax, eax
je 0x40e789
push eax
call fcn.004c5de7
add esp, 4
lea ecx, [esp + 0x9c]
mov byte [esp + 0x500], 6
call fcn.004c5787
lea ecx, [esp + 0x74]
mov byte [esp + 0x500], 5
call fcn.004c003f
mov dword [esp + 0x60], 0x4edc4c
mov eax, dword [esp + 0x64]
mov byte [esp + 0x500], 0x16
test eax, eax
je 0x40e7cf
push eax
call fcn.004c5de7
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x500], 3
call fcn.004c003f
lea ecx, [esp + 0x38]
mov byte [esp + 0x500], 2
call fcn.004c5787
lea ecx, [esp + 0x10]
mov byte [esp + 0x500], 1
call fcn.004c5787
lea ecx, [esp + 0x1c]
mov byte [esp + 0x500], 0
call fcn.004c5787
lea ecx, [esp + 0x20]
mov dword [esp + 0x500], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x4f8]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4f4
ret 0x10