Function at 0x403e80
Capabilities:
Create thread
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x478584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [edi + 0x88], eax
call fcn.00408640
mov esi, eax
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
mov ecx, 0x47839c
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp + 0x14]
push ecx
test eax, eax
jne 0x403f93
lea ebx, [esi + 0xe8]
lea edx, [ebp - 0x1c]
push ebx
push edx
call fcn.00402210
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x10
mov byte [ebp + 0x1b], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0x1b], 0
je 0x403f3d
push ebx
jmp 0x40428f
mov ecx, dword [ebp + 0x14]
push ecx
add esi, 0xec
lea edx, [ebp + 0x18]
push esi
push edx
call fcn.00402210
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4043d5
push esi
jmp 0x40428f
lea eax, [esi + 0xe8]
push eax
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00402210
mov byte [ebp - 4], 6
push 0x45e6a8
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 1
call fcn.004022d0
mov dword [ebp - 4], 7
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x14], 3
call fcn.00402210
mov dword [ebp - 4], 8
mov ebx, 7
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x28
test al, al
je 0x40402a
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
push edx
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402210
mov dword [ebp - 4], 9
mov ebx, 0xf
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x10
mov byte [ebp - 0xd], 1
test al, al
jne 0x40402e
mov byte [ebp - 0xd], 0
mov eax, 8
mov dword [ebp - 4], eax
test al, bl
je 0x404062
and ebx, 0xfffffff7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
mov dword [ebp - 4], eax
test bl, 4
je 0x404097
and ebx, 0xfffffffb
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404097
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 6
mov dword [ebp - 4], eax
test bl, 2
je 0x4040cc
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 1
test bl, 1
je 0x404101
and ebx, 0xfffffffe
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x40410f
mov ecx, dword [ebp - 0x1c]
jmp 0x40428e
lea eax, [esi + 0xec]
mov esi, dword [ebp + 0x14]
push esi
push eax
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00402210
mov byte [ebp - 4], 0xe
push 0x45e6a8
push eax
lea eax, [ebp - 0x24]
or ebx, 0x10
push eax
mov dword [ebp - 0x14], ebx
call fcn.004022d0
mov dword [ebp - 4], 0xf
or ebx, 0x20
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 0x18]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00402210
mov dword [ebp - 4], 0x10
or ebx, 0x40
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x28
test al, al
je 0x4041a7
mov eax, dword [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402210
mov dword [ebp - 4], 0x11
or ebx, 0x80
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x10
mov byte [ebp + 0x1b], 1
test al, al
jne 0x4041ab
mov byte [ebp + 0x1b], 0
mov eax, 0x10
mov dword [ebp - 4], eax
test bl, bl
jns 0x4041e2
and ebx, 0xffffff7f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xf
mov dword [ebp - 4], eax
test bl, 0x40
je 0x404217
and ebx, 0xffffffbf
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404217
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xe
mov dword [ebp - 4], eax
test bl, 0x20
je 0x40424c
and ebx, 0xffffffdf
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40424c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 1
test bl, 0x10
je 0x404281
and ebx, 0xffffffef
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0x1b], 0
je 0x4043d5
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401f40
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
push ecx
call fcn.00402210
add esp, 0xc
mov bl, 0x16
mov byte [ebp - 4], bl
mov edx, dword [ebp + 0x14]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xb0], eax
cmp eax, 0xffffffff
jne 0x4042e8
mov dword [edi + 0xb0], esi
mov dword [edi + 0x88], esi
jmp 0x4043b2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0x88], eax
cmp ecx, esi
je 0x40431f
cmp eax, ecx
je 0x40431f
mov eax, dword [edi + 0xb0]
push eax
mov dword [edi + 0x88], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xb0], esi
jmp 0x4043b2
lea edx, [ebp + 0x14]
lea ecx, [edi + 0xb4]
push edx
call fcn.00401f40
mov eax, dword [ebp + 0x14]
push 0x2e
push eax
call fcn.0043db8c
add esp, 8
cmp eax, esi
je 0x404392
add eax, 2
lea esi, [edi + 0x94]
push eax
mov ecx, esi
call fcn.00402400
lea ecx, [ebp + 0x18]
push esi
push ecx
call fcn.00436130
add esp, 8
mov byte [ebp - 4], 0x17
lea ecx, [edi + 0x98]
push eax
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4043b2
push 0x45e748
lea ecx, [edi + 0x94]
call fcn.00402400
lea ecx, [edi + 0x98]
push str.application_unknown
call fcn.00402400
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x88], 0
jbe 0x4044fc
mov eax, dword [edi + 0x90]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x40441f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x404415
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 0x90], eax
test eax, eax
jne 0x40441f
push 0x8007000e
call fcn.00401000
mov dword [edi + 0x90], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x404445
cmp dword [edi + 0x24], esi
je 0x404445
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x24]
test eax, eax
je 0x404442
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x24], esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x404462
lea eax, [edi + 0x28]
push eax
mov dword [eax], 0x54
mov edx, dword [ecx]
lea eax, [edi + 0x7c]
push eax
push ecx
mov ecx, dword [edx + 0xc]
call ecx
push 0x48
call fcn.0043e28a
add esp, 4
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x404485
push 0x400
mov ecx, eax
call fcn.00403220
jmp 0x404487
xor eax, eax
mov byte [ebp - 4], 1
lea edx, [edi + 0xac]
push edx
push 0
push edi
push 0x403c00
mov dword [edi + 0x80], eax
push 0
push 0
mov dword [eax + 0x18], 0x403c20
mov dword [eax + 0x1c], edi
call fcn.0043e3cf
add esp, 0x18
mov dword [edi + 0xa8], eax
test eax, eax
je 0x4044fc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18