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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x3a8], 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
cmp esi, 0xffffffff
jl 0x405c70
mov ecx, dword [edi]
cmp esi, dword [ecx + 4]
jge 0x405c70
cmp dword [edi + 4], 0xffffffff
je 0x40574f
call fcn.004055a0
or dword [edi + 4], 0xffffffff
cmp esi, dword [edi + 0x238]
jne 0x405773
cmp esi, 0xffffffff
je 0x405773
lea esi, [edi + 8]
mov ecx, 0x8c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x405c75
mov ecx, dword [edi]
cmp esi, 0xffffffff
jne 0x4057bd
mov eax, dword [ecx + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x20c], eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], eax
jmp 0x40576c
cmp dword [ecx + 0x10], esi
jle 0x4057d5
call fcn.00404fdd
jmp 0x4057d0
mov ecx, dword [edi]
call fcn.00405014
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jl 0x4057c9
sub esp, 0x10
lea eax, [esp + 0xb0]
lea edx, [esp + 0x30]
push 0x104
push eax
push 0
call fcn.00404e03
mov ecx, dword [edi]
lea eax, [esp + 0x28]
add esp, 0x1c
lea edx, [esp + 0x78]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040506b
pop ecx
pop ecx
test eax, eax
je 0x40581a
mov eax, 0x700
jmp 0x405c75
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
push 0
mov ecx, dword [ecx]
call fcn.0040497b
pop ecx
test eax, eax
je 0x405838
mov eax, 0x800
jmp 0x405c75
push dword [esp + 0xc]
call fcn.0040a390
pop ecx
mov ecx, dword [edi]
mov esi, eax
xor edx, edx
mov dword [esp + 0x10], esi
inc edx
push dword [ecx]
mov ecx, esi
push dword [esp + 0x10]
call fcn.004049e6
pop ecx
pop ecx
cmp eax, dword [esp + 0xc]
je 0x40586b
push esi
call fcn.0040a399
pop ecx
jmp 0x40582e
mov eax, dword [edi]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x1ac]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xac]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esp + 0x1a8]
movzx eax, word [esi]
test ax, ax
je 0x4058b1
cmp word [esi + 2], 0x3a
jne 0x4058b1
add esi, 4
jmp 0x40589d
cmp eax, 0x5c
jne 0x4058bb
add esi, 2
jmp 0x40589d
cmp eax, 0x2f
je 0x4058b6
push 0x425b24
push esi
call fcn.0040b7b5
pop ecx
pop ecx
test eax, eax
je 0x4058d6
lea esi, [eax + 8]
jmp 0x40589d
push str..._
push esi
call fcn.0040b7b5
pop ecx
pop ecx
test eax, eax
jne 0x4058d1
push 0x425b3c
push esi
call fcn.0040b7b5
pop ecx
pop ecx
test eax, eax
jne 0x4058d1
push str._.._
push esi
call fcn.0040b7b5
pop ecx
pop ecx
test eax, eax
jne 0x4058d1
push esi
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.0040e16b
mov edx, dword [esp + 0x60]
add esp, 0xc
mov eax, edx
mov byte [esp + 0x18], 0
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x74], eax
not cl
mov eax, dword [esp + 0x20]
and cl, 1
shr eax, 8
mov byte [esp + 0x14], 0
mov byte [esp + 0x78], 1
test eax, eax
je 0x405960
cmp eax, 7
je 0x405960
cmp eax, 0xb
je 0x405960
cmp eax, 0xe
jne 0x405996
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 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
shr edx, 5
mov byte [esp + 0x74], al
and edx, 0xffffff01
jmp 0x40599a
mov edx, dword [esp + 0x78]
and dword [ebx + 0x20c], 0
xor eax, eax
cmp byte [esp + 0x74], al
je 0x4059b2
push 0x10
pop eax
mov dword [ebx + 0x20c], eax
test dl, dl
je 0x4059bf
or eax, 0x20
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x18], 0
je 0x4059cf
or eax, 2
mov dword [ebx + 0x20c], eax
test cl, cl
je 0x4059dc
or eax, 1
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x14], 0
je 0x4059ec
or eax, 4
mov dword [ebx + 0x20c], eax
mov edx, dword [esp + 0x30]
mov esi, 0x7bc
mov eax, dword [esp + 0x38]
mov ecx, edx
mov dword [ebx + 0x228], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x22c], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x80], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x86], cx
mov word [esp + 0x82], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x88], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x8a], ax
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x84]
mov word [esp + 0x90], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x98]
xor esi, esi
cmp dword [esp + 0xc], 4
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], ecx
mov dword [ebx + 0x224], eax
jbe 0x405c2e
mov byte [esp + 0x76], 0
mov al, byte [esi + edx]
xor ecx, ecx
mov byte [esp + 0x74], al
mov al, byte [edx + esi + 1]
mov byte [esp + 0x75], al
mov edi, 0x425b54
lea eax, [esp + 0x74]
movzx eax, byte [eax + ecx]
cmp al, byte [edi + ecx]
mov edi, dword [esp + 0x1c]
jne 0x405c57
inc ecx
cmp ecx, 3
jne 0x405b09
mov al, byte [esi + edx + 4]
add esi, 5
movzx ecx, al
mov dword [esp + 0xc], ecx
shr dword [esp + 0xc], 1
and byte [esp + 0xc], 1
shr ecx, 2
and cl, 1
mov dword [esp + 0x78], ecx
test al, 1
je 0x405b95
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 + 0x220], eax
adc edx, 0x19db1de
mov dword [ebx + 0x224], edx
mov edx, dword [esp + 0x10]
cmp byte [esp + 0xc], 0
je 0x405bdf
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 + 0x210], eax
adc edx, 0x19db1de
mov dword [ebx + 0x214], edx
cmp byte [esp + 0x78], 0
mov edx, dword [esp + 0x10]
je 0x405c2e
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 + 0x218], eax
adc edx, 0x19db1de
mov dword [ebx + 0x21c], edx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x405c39
push edx
call fcn.0040a399
pop ecx
mov eax, dword [esp + 0x1c]
add edi, 8
mov ecx, 0x8c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x238], ecx
jmp 0x40576c
movzx eax, byte [esi + edx + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0xc]
jb 0x405af8
jmp 0x405c2e
mov eax, 0x10000
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a35c
mov esp, ebp
pop ebp
ret 8