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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x47d00c]
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 + 0x2c], edi
cmp esi, 0xffffffff
jl 0x40ec03
mov ecx, dword [edi]
cmp esi, dword [ecx + 4]
jge 0x40ec03
cmp dword [edi + 4], 0xffffffff
je 0x40e5b8
call fcn.0040e500
mov dword [edi + 4], 0xffffffff
cmp esi, dword [edi + 0x134]
jne 0x40e5f1
cmp esi, 0xffffffff
je 0x40e5f1
lea esi, [edi + 8]
mov ecx, 0x4b
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
cmp esi, 0xffffffff
jne 0x40e674
mov eax, dword [ecx + 4]
mov dword [ebx], eax
xor eax, 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
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8
cmp dword [ecx + 0x10], esi
jle 0x40e683
call fcn.0040dda0
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x40e6e5
mov eax, dword [ebp + 8]
mov esi, ecx
nop word [eax + eax]
mov ecx, esi
test esi, esi
je 0x40e6de
cmp dword [esi + 0x18], 0
je 0x40e6de
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x40e6db
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.0040d900
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [ecx + 0x10], eax
jl 0x40e690
sub esp, 0x10
lea eax, [esp + 0xb0]
lea edx, [esp + 0x50]
push 0x104
push eax
push 0
call fcn.0040d900
mov ecx, dword [edi]
lea eax, [esp + 0x34]
add esp, 0x1c
lea edx, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040dde0
add esp, 8
test eax, eax
je 0x40e73b
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x40e761
cmp byte [ecx + 1], 0
je 0x40e7a0
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x10]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40e768
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
push dword [esp + 0x18]
call fcn.00414d84
mov ecx, dword [edi]
add esp, 4
mov esi, eax
mov edx, 1
mov dword [esp + 0x10], esi
push dword [ecx]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.0040d360
add esp, 8
cmp eax, dword [esp + 0x18]
je 0x40e7bc
push esi
call fcn.00414d7f
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
mov al, byte [esp + ecx + 0xa0]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x1a7], al
test al, al
jne 0x40e7c5
lea esi, [esp + 0x1a8]
mov al, byte [esi]
test al, al
je 0x40e7f2
cmp byte [esi + 1], 0x3a
jne 0x40e7f2
add esi, 2
jmp 0x40e7e1
cmp al, 0x5c
jne 0x40e7f9
inc esi
jmp 0x40e7e1
cmp al, 0x2f
jne 0x40e800
inc esi
jmp 0x40e7e1
push 0x477ed8
push esi
call fcn.0045403a
add esp, 8
test eax, eax
je 0x40e817
lea esi, [eax + 4]
jmp 0x40e7e1
push str..._
push esi
call fcn.0045403a
add esp, 8
test eax, eax
je 0x40e82e
lea esi, [eax + 4]
jmp 0x40e7e1
push 0x477ee8
push esi
call fcn.0045403a
add esp, 8
test eax, eax
je 0x40e845
lea esi, [eax + 4]
jmp 0x40e7e1
push str._.._
push esi
call fcn.0045403a
add esp, 8
test eax, eax
je 0x40e85c
lea esi, [eax + 4]
jmp 0x40e7e1
push 0x104
lea eax, [ebx + 4]
push esi
push eax
call fcn.00453f55
mov edx, dword [esp + 0x80]
add esp, 0xc
mov eax, edx
mov byte [esp + 0x28], 0
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x14], eax
not cl
mov eax, dword [esp + 0x40]
and cl, 1
shr eax, 8
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 1
test eax, eax
je 0x40e8b6
cmp eax, 7
je 0x40e8b6
cmp eax, 0xb
je 0x40e8b6
cmp eax, 0xe
jne 0x40e8ec
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x28], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [esp + 0x14], al
and edx, 0xffffff01
jmp 0x40e8f0
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [ebx + 0x108], 0
cmp byte [esp + 0x14], al
je 0x40e911
mov dword [ebx + 0x108], 0x10
mov eax, 0x10
test dl, dl
je 0x40e91e
or eax, 0x20
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x28], 0
je 0x40e92e
or eax, 2
mov dword [ebx + 0x108], eax
test cl, cl
je 0x40e93b
or eax, 1
mov dword [ebx + 0x108], eax
cmp byte [esp + 0x1c], 0
je 0x40e94b
or eax, 4
mov dword [ebx + 0x108], eax
mov edx, dword [esp + 0x50]
mov esi, 0x7bc
mov eax, dword [esp + 0x58]
mov ecx, edx
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x128], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x90], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x96], cx
mov word [esp + 0x92], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x98], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x9a], ax
xor eax, eax
mov word [esp + 0x9e], ax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x94]
mov word [esp + 0xa0], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x38]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x3c]
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 0x40ebc0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x16], 0
lea ecx, [eax + 1]
mov dword [esp + 0x20], ecx
jmp 0x40ea54
mov eax, dword [esp + 0x10]
movzx eax, byte [esi + eax]
mov byte [esp + 0x14], al
movzx eax, byte [esi + ecx]
mov ecx, 0x477ef8
mov byte [esp + 0x15], al
lea eax, [esp + 0x14]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ea90
test dl, dl
je 0x40ea8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ea90
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ea70
xor eax, eax
jmp 0x40ea95
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40eab9
movzx eax, byte [esi + eax + 2]
mov ecx, dword [esp + 0x20]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x40ea50
jmp 0x40ebc0
mov al, byte [esi + eax + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
test al, 1
je 0x40eb2a
mov edx, dword [esp + 0x10]
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
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x11c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x120], edx
mov edx, dword [esp + 0x20]
test dl, dl
je 0x40eb75
mov edx, dword [esp + 0x10]
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
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x10c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x1c], 0
je 0x40ebc0
mov edx, dword [esp + 0x10]
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
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x114], eax
adc edx, 0x19db1de
mov dword [ebx + 0x118], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ebd1
push eax
call fcn.00414d7f
add esp, 4
mov eax, dword [esp + 0x2c]
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.00414803
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x2b4]
mov eax, 0x10000
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8