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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x43ad20]
xor eax, esp
mov dword [esp + 0x3a8], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
jl 0x406213
mov edi, dword [ebx]
cmp eax, dword [edi + 4]
jge 0x406213
cmp dword [ebx + 4], 0xffffffff
je 0x405c2e
call fcn.00405ab0
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x238]
mov dword [ebx + 4], 0xffffffff
jne 0x405c69
cmp eax, 0xffffffff
je 0x405c6e
mov edi, dword [esp + 0x18]
lea esi, [ebx + 8]
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00418825
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
jne 0x405cc8
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
xor eax, eax
mov dword [esi], ecx
mov word [esi + 4], ax
mov dword [esi + 0x20c], eax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00418825
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx]
cmp eax, dword [esi + 0x10]
jge 0x405cd7
call fcn.004053f0
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
cmp dword [edx + 0x10], eax
jge 0x405d34
mov edi, edi
mov esi, dword [ebx]
test esi, esi
je 0x405d2a
cmp dword [esi + 0x18], 0
je 0x405d2a
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x405d2a
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.00404fa0
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
cmp dword [ecx + 0x10], edx
jl 0x405ce0
push 0x104
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.00404fa0
mov edi, dword [ebx]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00405430
add esp, 0x1c
test eax, eax
je 0x405d88
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00418825
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx]
mov eax, dword [edx]
cmp byte [eax], 0
je 0x405daf
cmp byte [eax + 1], 0
je 0x405dec
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x14]
mov edx, dword [eax + 4]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405db6
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x1c], ecx
mov esi, dword [esp + 0x20]
push esi
call fcn.00407ff5
mov edx, dword [ebx]
mov edi, dword [edx]
add esp, 4
push esi
mov ebx, 1
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.00404a70
add esp, 4
cmp eax, esi
je 0x405e08
mov eax, dword [esp + 0x14]
push eax
call fcn.00407ff0
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00418825
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x18]
push 0x104
lea ecx, [esp + 0x1ac]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0xac]
push edx
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [esp + 0x1a8]
mov ebx, 0x3a
movzx eax, word [edi]
test ax, ax
je 0x405e57
cmp word [edi + 2], bx
jne 0x405e57
add edi, 4
jmp 0x405e44
cmp ax, 0x5c
jne 0x405e62
add edi, 2
jmp 0x405e44
cmp ax, 0x2f
jne 0x405e6d
add edi, 2
jmp 0x405e44
push 0x433e78
push edi
call fcn.00418dbf
add esp, 8
test eax, eax
je 0x405e84
lea edi, [eax + 8]
jmp 0x405e44
push str..._
push edi
call fcn.00418dbf
add esp, 8
test eax, eax
je 0x405e9b
lea edi, [eax + 8]
jmp 0x405e44
push 0x433e90
push edi
call fcn.00418dbf
add esp, 8
test eax, eax
je 0x405eb2
lea edi, [eax + 8]
jmp 0x405e44
push str._.._
push edi
call fcn.00418dbf
add esp, 8
test eax, eax
je 0x405ecc
lea edi, [eax + 8]
jmp 0x405e44
push 0x104
lea eax, [esi + 4]
push edi
push eax
call fcn.00418d82
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x5c]
mov edx, eax
shr edx, 0x17
mov ecx, eax
shr ecx, 0x1e
not dl
add esp, 0xc
and cl, 1
and dl, 1
shr edi, 8
mov byte [esp + 0x1f], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 1
je 0x405f1e
cmp edi, 7
je 0x405f1e
cmp edi, 0xb
je 0x405f1e
cmp edi, 0xe
jne 0x405f45
mov ecx, eax
shr ecx, 2
and cl, 1
mov byte [esp + 0x12], cl
mov ebx, eax
mov ecx, eax
mov dl, al
shr ebx, 1
shr ecx, 4
shr eax, 5
and dl, 1
and bl, 1
and cl, 1
and al, 1
jmp 0x405f4d
mov bl, byte [esp + 0x1f]
mov al, byte [esp + 0x13]
xor edi, edi
test cl, cl
mov dword [esi + 0x20c], edi
je 0x405f63
mov dword [esi + 0x20c], 0x10
test al, al
je 0x405f6e
or dword [esi + 0x20c], 0x20
test bl, bl
je 0x405f79
or dword [esi + 0x20c], 2
test dl, dl
je 0x405f84
or dword [esi + 0x20c], 1
cmp byte [esp + 0x12], 0
je 0x405f92
or dword [esi + 0x20c], 4
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x228], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x22c], edx
mov eax, ecx
shr eax, 0x10
mov dx, ax
shr dx, 9
add dx, 0x7bc
mov word [esp + 0x30], dx
mov edx, eax
shr edx, 5
and eax, 0x1f
and edx, 0xf
mov word [esp + 0x36], ax
mov ax, cx
mov word [esp + 0x32], dx
mov edx, ecx
shr ax, 0xb
and ecx, 0x1f
add ecx, ecx
mov word [esp + 0x38], ax
lea eax, [esp + 0x28]
shr edx, 5
mov word [esp + 0x3c], cx
push eax
lea ecx, [esp + 0x34]
and edx, 0x3f
push ecx
mov word [esp + 0x42], dx
mov word [esp + 0x46], di
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor ebx, ebx
cmp dword [esp + 0x20], 4
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], ecx
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], ecx
mov dword [esi + 0x220], eax
mov dword [esi + 0x224], ecx
jbe 0x4061ce
mov byte [esp + 0x2a], bl
mov eax, dword [esp + 0x14]
mov cl, byte [ebx + eax]
mov dl, byte [ebx + eax + 1]
mov byte [esp + 0x28], cl
mov edi, 0x433ea8
lea esi, [esp + 0x28]
mov ecx, 3
xor eax, eax
mov byte [esp + 0x29], dl
repe cmpsb byte [esi], byte es:[edi]
je 0x4060ac
mov ecx, dword [esp + 0x14]
movzx edx, byte [ebx + ecx + 2]
lea ebx, [ebx + edx + 4]
lea eax, [ebx + 4]
cmp eax, dword [esp + 0x20]
jb 0x40606a
jmp 0x4061ca
mov esi, dword [esp + 0x14]
movzx eax, byte [ebx + esi + 4]
mov ecx, eax
mov edx, eax
shr ecx, 1
shr edx, 2
and cl, 1
and dl, 1
add ebx, 5
test al, 1
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
je 0x406129
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi]
xor eax, eax
mov ah, byte [ebx + esi + 3]
push 0
add ebx, 4
push 0x989680
mov al, byte [ebx + esi - 2]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.0041c730
mov edi, dword [esp + 0x18]
mov ecx, edx
sar ecx, 0x1f
mov cl, byte [esp + 0x13]
mov dword [edi + 0x224], edx
mov dl, byte [esp + 0x12]
mov dword [edi + 0x220], eax
jmp 0x40612d
mov edi, dword [esp + 0x18]
test cl, cl
je 0x40617d
movzx edx, byte [ebx + esi + 1]
movzx ecx, byte [ebx + esi]
xor eax, eax
mov ah, byte [ebx + esi + 3]
push 0
add ebx, 4
push 0x989680
mov al, byte [ebx + esi - 2]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.0041c730
mov ecx, edx
mov dword [edi + 0x214], edx
mov dl, byte [esp + 0x12]
sar ecx, 0x1f
mov dword [edi + 0x210], eax
test dl, dl
je 0x4061ca
mov eax, dword [esp + 0x14]
movzx ecx, byte [ebx + eax + 1]
xor edx, edx
mov dh, byte [ebx + eax + 3]
push 0
push 0x989680
mov dl, byte [ebx + eax + 2]
movzx eax, byte [ebx + eax]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
cdq
add eax, 0xb6109100
adc edx, 2
push edx
push eax
call fcn.0041c730
mov ecx, edx
sar ecx, 0x1f
mov dword [edi + 0x218], eax
mov dword [edi + 0x21c], edx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4061df
push eax
call fcn.00407ff0
add esp, 4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 8]
add edi, 8
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x238], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.00418825
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x10000
call fcn.00418825
mov esp, ebp
pop ebp
ret 4