Function at 0x407770
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460697
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x30], ebx
call fcn.004061c0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebp - 4], 1
lea edi, [ebx + 0x278]
mov ax, word [ebp + 0xc]
mov word [ebx + 0x1c], ax
xor eax, eax
mov dword [ebp + 8], edi
mov dword [ebx + 0x270], 0xffffffff
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 0x34], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 2
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], eax
mov eax, 0xffff
mov word [edi + 0x20], ax
mov dword [edi + 0x24], 0
mov word [edi + 0x28], ax
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 4
mov dword [ebx + 0x2b8], 0
mov dword [ebx + 0x2bc], 0x4865a8
cmp dword [ebx + 0x10], 0
je 0x40841d
push 0x250
lea esi, [ebx + 0x20]
push 0
push esi
call fcn.00439610
lea eax, [ebp - 0x84]
push 0x46ff04
push eax
call fcn.004052f0
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
push 2
mov dword [ebp - 0x6c], 0
call fcn.00417020
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
push ebx
call fcn.004061c0
mov byte [ebp - 4], 8
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 4
call fcn.0040a4b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov eax, 4
mov dword [ebp - 0x10], eax
and eax, 0xfffffffb
mov dword [ebx + 0x270], esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00410af0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00410af0
cmp esi, 0xffffffff
je 0x40833d
lea esi, [ebx + 0x4c]
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
push esi
call fcn.00411b00
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4c]
mov esi, dword [ebp - 0x10]
push 0x470030
or esi, 1
push eax
mov dword [ebp - 0x10], esi
call fcn.004030f0
add esp, 8
test al, al
jne 0x4079e8
xor eax, eax
mov dword [ebp - 0x64], 0
mov word [ebp - 0x64], ax
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x64]
push eax
lea eax, [ebx + 0x4c]
push eax
call fcn.00411b00
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x64]
push 0x470034
or esi, 2
push eax
mov dword [ebp - 0x10], esi
call fcn.004030f0
add esp, 8
mov byte [ebp + 0xf], 0
test al, al
je 0x4079ec
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x10]
test al, 2
je 0x407a51
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x407a3d
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
push ecx
push edx
call fcn.0043666a
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], cx
mov dword [ebp - 4], 4
test al, 1
je 0x407ab0
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x407a9c
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp byte [ebp + 0xf], 0
je 0x4081d6
cmp dword [ebx + 0x270], 0xffffffff
je 0x4081bf
nop word [eax + eax]
lea eax, [ebx + 0x20]
push eax
push dword [ebx + 0x270]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x40815e
cmp edi, ebx
je 0x407be9
cmp dword [ebx + 0x14], 8
mov dword [ebp + 0xc], ebx
jb 0x407afe
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp eax, ecx
ja 0x407b3e
mov dword [ebp + 8], edi
mov edx, edi
cmp ecx, 8
jb 0x407b1d
mov edx, dword [edi]
mov dword [ebp + 8], edx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push dword [ebp + 0xc]
push edx
call fcn.00439090
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x407be9
cmp eax, 0x7ffffffe
ja 0x40843e
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x407b5d
mov esi, SysReAllocString
jmp 0x407b7b
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x407b73
mov esi, SysReAllocString
jmp 0x407b7b
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004112f0
mov ecx, dword [ebp - 0x34]
mov dword [edi + 0x14], esi
mov dword [ebp + 8], eax
mov dword [edi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp + 0xc]
push eax
call fcn.00439090
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x407be7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x407bda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
mov eax, edx
push ecx
push eax
call fcn.0043666a
mov eax, dword [ebp + 8]
add esp, 8
mov dword [edi], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x407ce4
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0xd
xor eax, eax
lea esi, [ebx + 0x4c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00411b00
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004053f0
or dword [ebp - 0x10], 0x20
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407c92
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407c88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 2
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x6c], eax
call fcn.00417020
mov byte [ebp - 4], 4
and dword [ebp - 0x10], 0xffffffdf
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.0040a4b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00410af0
jmp 0x407e0d
mov edx, dword [edi + 0x14]
mov eax, edi
mov dword [ebp + 0xc], edx
cmp edx, 8
jb 0x407cf3
mov eax, dword [edi]
lea esi, [ecx + ecx]
cmp word [esi + eax - 2], 0x5c
mov dword [ebp - 0x34], esi
je 0x407df1
cmp ecx, edx
jae 0x407d24
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 8
jb 0x407d18
mov eax, dword [edi]
mov dword [eax + esi], 0x5c
jmp 0x407df1
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x40843e
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x30], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x407d4e
mov esi, SysReAllocString
jmp 0x407d6c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x407d64
mov esi, SysReAllocString
jmp 0x407d6c
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004112f0
cmp dword [ebp + 0xc], 8
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edi + 0x14], esi
mov dword [ebp + 8], eax
push ecx
lea esi, [eax + ecx]
mov dword [ebp - 0x30], esi
jb 0x407ddc
mov esi, dword [edi]
push esi
push eax
call fcn.00439090
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp + 0xc]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x407dd0
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x408439
mov esi, edx
push ecx
push esi
call fcn.0043666a
add esp, 8
jmp 0x407dec
push edi
push eax
call fcn.00439090
add esp, 0xc
mov dword [esi], 0x5c
mov eax, dword [ebp + 8]
mov dword [edi], eax
lea esi, [ebx + 0x4c]
push esi
call fcn.00441a9f
add esp, 4
mov ecx, edi
push eax
push esi
call fcn.004117b0
mov ecx, edi
call fcn.00411d80
mov eax, dword [ebx + 0x20]
test eax, 0x400
je 0x407e5f
push 0
lea eax, [ebx + 0x2b0]
push eax
push 0
lea eax, [ebx + 0x2a8]
push eax
lea eax, [ebx + 0x29c]
push eax
lea edx, [ebx + 0x2b8]
push edx
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00419120
add esp, 0x20
mov ecx, dword [eax]
mov dword [ebx + 0x294], ecx
mov ax, word [eax + 4]
mov word [ebx + 0x298], ax
jmp 0x407f0c
cmp dword [ebx + 0x44], 0xa000000c
jne 0x407e6f
mov esi, 4
jmp 0x407e7b
movzx esi, al
and esi, 0x10
or esi, 0x20
shr esi, 4
test al, 1
mov ecx, 0x124
mov eax, 0x1b6
cmovne eax, ecx
movzx eax, ax
mov dword [ebp + 8], eax
movzx eax, ax
push edi
mov dword [ebp + 0xc], eax
call fcn.004153b0
add esp, 4
test al, al
je 0x407eaf
mov eax, dword [ebp + 8]
or eax, 0x49
movzx eax, ax
mov dword [ebp + 0xc], eax
lea edx, [ebx + 0x2a8]
test edx, edx
je 0x407ec6
mov ecx, dword [ebx + 0x3c]
xor eax, eax
or eax, dword [ebx + 0x40]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea eax, [ebx + 0x2b0]
test eax, eax
je 0x407ee8
lea eax, [ebx + 0x34]
push eax
call fcn.004198b0
add esp, 4
mov dword [ebx + 0x2b0], eax
mov dword [ebx + 0x2b4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x294], esi
mov word [ebx + 0x298], ax
mov dword [ebx + 0x29c], esi
mov ax, word [ebx + 0x298]
mov word [ebx + 0x2a0], ax
cmp dword [ebx + 0x2b8], 0
je 0x407f65
cmp dword [ebx + 0x294], 0
je 0x407f3d
cmp dword [ebx + 0x29c], 0
je 0x407f3d
mov dword [ebx + 0x2b8], 0
mov dword [ebx + 0x2bc], 0x4865a8
jmp 0x407f65
mov dword [ebx + 0x2a8], 0xffffffff
mov dword [ebx + 0x2ac], 0xffffffff
mov dword [ebx + 0x2b0], 0
mov dword [ebx + 0x2b4], 0
xor eax, eax
mov dword [ebp - 0x64], 0
lea esi, [ebx + 0x4c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x64]
push eax
push esi
call fcn.00411b00
mov byte [ebp - 4], 0x14
or dword [ebp - 0x10], 8
push 0x470030
call fcn.00441a9f
mov edx, dword [ebp - 0x54]
lea esi, [ebp - 0x64]
add esp, 4
cmp dword [ebp - 0x50], 8
cmovae esi, dword [ebp - 0x64]
cmp edx, eax
jne 0x407ffa
mov ecx, 0x470030
test edx, edx
je 0x408081
sub esi, ecx
nop word [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x407ffa
add ecx, 2
sub edx, 1
jne 0x407fe0
mov byte [ebp + 0xf], 1
jmp 0x40808b
xor eax, eax
mov dword [ebp - 0x4c], 0
lea esi, [ebx + 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
push esi
call fcn.00411b00
mov dword [ebp - 4], 0x15
or dword [ebp - 0x10], 0x10
push 0x470034
call fcn.00441a9f
mov edx, dword [ebp - 0x3c]
lea esi, [ebp - 0x4c]
add esp, 4
cmp dword [ebp - 0x38], 8
cmovae esi, dword [ebp - 0x4c]
cmp edx, eax
jne 0x408087
mov ecx, 0x470034
test edx, edx
je 0x408081
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x408087
add ecx, 2
sub edx, 1
jne 0x408070
mov byte [ebp + 0xf], 1
jmp 0x40808b
mov byte [ebp + 0xf], 0
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0x10]
test al, 0x10
je 0x4080f0
and eax, 0xffffffef
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x4080dc
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4080cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
push ecx
push edx
call fcn.0043666a
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], cx
mov dword [ebp - 4], 4
test al, 8
je 0x40814f
and eax, 0xfffffff7
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x40813b
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408131
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408439
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp byte [ebp + 0xf], 0
jne 0x407ad0
jmp 0x40841d
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x12
je 0x40818b
test eax, eax
jne 0x408171
call esi
mov dword [ebx + 0x2bc], 0x4865a8
mov dword [ebx + 0x2b8], eax
mov dword [ebx + 0x2bc], 0x4865a8
push dword [ebx + 0x270]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebx + 0x270], 0xffffffff
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4081b2
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x18], ecx
jmp 0x40841d
mov eax, dword [ebx + 0x2b8]
mov ecx, dword [ebx + 0x2bc]
mov dword [ebx + 0x2bc], ecx
jmp 0x408417
xor eax, eax
mov dword [ebp - 0x28], 0
lea esi, [ebx + 0x4c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00411b00
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x28]
push 2
push eax
lea ecx, [ebp - 0x84]
call fcn.00408620
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0040a440
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x18
cmp edi, esi
je 0x4082b7
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x408285
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40827b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408443
mov eax, edx
push ecx
push eax
call fcn.0043666a
add esp, 8
push 0x18
xor eax, eax
mov dword [edi + 0x10], 0
push esi
push edi
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.00439090
add esp, 0xc
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x68]
call fcn.00410af0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x84]
call fcn.00410af0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x408316
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40830c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408443
push ecx
push edx
call fcn.0043666a
add esp, 8
lea edx, [ebx + 0x2b8]
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
push edx
mov ecx, ebx
mov word [ebp - 0x28], ax
call fcn.00412390
jmp 0x40841d
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov edi, eax
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x4083ac
mov ecx, ebx
call fcn.00410af0
push 0x18
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00439090
add esp, 0xc
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4083ec
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4083e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408448
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edi, 5
jne 0x40840b
test byte [ebp + 0xc], 2
jne 0x40841d
call esi
mov dword [ebx + 0x2bc], 0x4865a8
mov dword [ebx + 0x2b8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.0043b67f
call fcn.00410d70
call fcn.0043b67f
call fcn.0043b67f
int3