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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x43b83c]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
cmp esi, 0xffffffff
jl 0x40fba2
mov ecx, dword [edi]
cmp esi, dword [ecx + 4]
jge 0x40fba2
cmp dword [edi + 4], 0xffffffff
je 0x40f52c
call fcn.0040f3b0
mov dword [edi + 4], 0xffffffff
cmp esi, dword [edi + 0x134]
jne 0x40f565
cmp esi, 0xffffffff
je 0x40f56a
lea esi, [edi + 8]
mov ecx, 0x4b
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret 8
cmp esi, 0xffffffff
jne 0x40f5e8
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
cmp esi, dword [ecx + 0x10]
jge 0x40f5f4
call fcn.0040ed00
mov eax, dword [edi]
cmp dword [eax + 0x10], esi
jge 0x40f654
mov ebx, esi
lea ecx, [ecx]
mov esi, dword [edi]
test esi, esi
je 0x40f649
cmp dword [esi + 0x18], 0
je 0x40f649
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x40f649
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
add eax, 0x2e
sub esp, 0x10
add eax, ecx
add dword [esi + 0x14], eax
push 0
lea eax, [esi + 0x78]
mov dword [esi + 0x10], edx
push 0
push eax
lea edx, [esi + 0x28]
mov ecx, esi
call fcn.0040e8c0
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x40f600
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
sub esp, 0x10
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
lea edx, [esp + 0x3c]
call fcn.0040e8c0
mov ecx, dword [edi]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x80]
call fcn.0040ed40
add esp, 8
test eax, eax
je 0x40f6af
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x40f6d5
cmp byte [ecx + 1], 0
je 0x40f714
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0xc]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f6dc
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
push dword [esp + 0x10]
call fcn.00415987
mov ecx, dword [edi]
add esp, 4
push dword [ecx]
mov esi, eax
push dword [esp + 0x14]
mov edx, 1
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.0040e290
add esp, 8
cmp eax, dword [esp + 0x10]
je 0x40f730
push esi
call fcn.004152b7
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x1ac]
push 0x104
push eax
call fcn.00415f60
add esp, 0xc
lea esi, [esp + 0x1a8]
jmp 0x40f760
mov al, byte [esi]
test al, al
je 0x40f771
cmp byte [esi + 1], 0x3a
jne 0x40f771
add esi, 2
jmp 0x40f760
cmp al, 0x5c
jne 0x40f778
inc esi
jmp 0x40f760
cmp al, 0x2f
jne 0x40f77f
inc esi
jmp 0x40f760
push 0x436bec
push esi
call fcn.0041603d
add esp, 8
test eax, eax
je 0x40f796
lea esi, [eax + 4]
jmp 0x40f760
push str..._
push esi
call fcn.0041603d
add esp, 8
test eax, eax
je 0x40f7ad
lea esi, [eax + 4]
jmp 0x40f760
push 0x436bfc
push esi
call fcn.0041603d
add esp, 8
test eax, eax
je 0x40f7c4
lea esi, [eax + 4]
jmp 0x40f760
push str._.._
push esi
call fcn.0041603d
add esp, 8
test eax, eax
je 0x40f7db
lea esi, [eax + 4]
jmp 0x40f760
push esi
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.00415f60
mov edx, dword [esp + 0x60]
mov eax, edx
shr eax, 0x1e
and eax, 0xffffff01
mov ecx, edx
shr ecx, 0x17
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
not cl
shr eax, 8
add esp, 0xc
and cl, 1
mov byte [esp + 0x18], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x78], 1
test eax, eax
je 0x40f835
cmp eax, 7
je 0x40f835
cmp eax, 0xb
je 0x40f835
cmp eax, 0xe
jne 0x40f86c
mov eax, edx
shr eax, 1
and eax, 0xffffff01
mov dword [esp + 0x18], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and al, 1
mov byte [esp + 0x74], al
mov eax, edx
mov cl, dl
shr eax, 5
and cl, 1
and eax, 0xffffff01
jmp 0x40f870
mov eax, dword [esp + 0x78]
cmp byte [esp + 0x74], 0
mov dword [ebx + 0x108], 0
je 0x40f88b
mov dword [ebx + 0x108], 0x10
test al, al
je 0x40f896
or dword [ebx + 0x108], 0x20
cmp byte [esp + 0x18], 0
je 0x40f8a4
or dword [ebx + 0x108], 2
test cl, cl
je 0x40f8af
or dword [ebx + 0x108], 1
cmp byte [esp + 0x14], 0
je 0x40f8bd
or dword [ebx + 0x108], 4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x128], eax
mov ecx, edx
shr ecx, 0x10
mov ax, cx
shr ax, 9
mov esi, 0x7bc
add ax, si
mov word [esp + 0x80], ax
mov eax, ecx
shr eax, 5
and eax, 0xf
mov word [esp + 0x82], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x88], ax
mov eax, edx
shr eax, 5
and eax, 0x3f
mov word [esp + 0x8a], ax
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [esp + 0x78]
push eax
and edx, 0x1f
lea eax, [esp + 0x84]
and ecx, 0x1f
add edx, edx
push eax
mov word [esp + 0x8e], cx
mov word [esp + 0x94], dx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
xor esi, esi
cmp dword [esp + 0x10], 4
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], eax
jbe 0x40fb5f
mov eax, dword [esp + 0xc]
mov byte [esp + 0x76], 0
lea edx, [eax + 1]
jmp 0x40f9d4
mov eax, dword [esp + 0xc]
movzx eax, byte [esi + eax]
mov byte [esp + 0x74], al
movzx eax, byte [esi + edx]
mov byte [esp + 0x75], al
mov ecx, 0x436c0c
lea eax, [esp + 0x74]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fa10
test dl, dl
je 0x40fa0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fa10
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f9f0
xor eax, eax
jmp 0x40fa15
sbb eax, eax
or eax, 1
test eax, eax
je 0x40fa38
mov ecx, dword [esp + 0xc]
movzx eax, byte [esi + ecx + 2]
add eax, 4
add esi, eax
lea edx, [ecx + 1]
lea eax, [esi + 4]
cmp eax, dword [esp + 0x10]
jb 0x40f9d0
jmp 0x40fb63
mov edx, dword [esp + 0xc]
add esi, 5
movzx eax, byte [esi + edx - 1]
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 2
and byte [esp + 0x10], 1
and ecx, 0xffffff01
mov dword [esp + 0x78], ecx
test al, 1
je 0x40fab9
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
cdq
push 0
add esi, 4
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.0041bc90
mov ecx, edx
sar ecx, 0x1f
mov ecx, dword [esp + 0x78]
mov dword [ebx + 0x120], edx
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x11c], eax
test cl, cl
je 0x40fb0a
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
cdq
push 0
add esi, 4
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.0041bc90
mov ecx, edx
sar ecx, 0x1f
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x10], 0
je 0x40fb5f
mov edx, dword [esp + 0xc]
push 0
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
cdq
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.0041bc90
mov ecx, edx
sar ecx, 0x1f
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], edx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40fb70
push ecx
call fcn.004152b7
add esp, 4
mov eax, dword [esp + 0x1c]
add edi, 8
mov ecx, 0x4b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x134], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x10000
call fcn.00415144
mov esp, ebp
pop ebp
ret 8