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

Disassembly:
sub esp, 0x3ac
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x3a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3bc]
push esi
mov esi, dword [esp + 0x3bc]
cmp esi, 0xffffffff
mov ebx, ecx
push edi
mov dword [esp + 0x28], ebx
jl 0x40a9da
mov edi, dword [ebx]
cmp esi, dword [edi + 4]
jge 0x40a9da
cmp dword [ebx + 4], 0xffffffff
je 0x40a43b
call fcn.0040a220
cmp esi, dword [ebx + 0x238]
mov dword [ebx + 4], 0xffffffff
jne 0x40a462
cmp esi, 0xffffffff
je 0x40a467
lea esi, [ebx + 8]
mov ecx, 0x8c
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x40a9df
cmp esi, 0xffffffff
jne 0x40a4b0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
xor eax, eax
mov dword [ebp], ecx
mov word [ebp + 4], ax
mov dword [ebp + 0x20c], eax
mov dword [ebp + 0x210], eax
mov dword [ebp + 0x214], eax
mov dword [ebp + 0x218], eax
mov dword [ebp + 0x21c], eax
mov dword [ebp + 0x220], eax
mov dword [ebp + 0x224], eax
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x22c], eax
jmp 0x40a9df
mov eax, dword [ebx]
cmp esi, dword [eax + 0x10]
jge 0x40a4c5
mov esi, eax
call fcn.00409be0
mov esi, dword [esp + 0x3c0]
mov edx, dword [ebx]
cmp dword [edx + 0x10], esi
jge 0x40a528
lea esp, [esp]
mov esi, dword [ebx]
test esi, esi
je 0x40a51a
cmp dword [esi + 0x18], 0
je 0x40a51a
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x40a51a
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
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
xor eax, eax
mov ecx, esi
call fcn.00409950
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x3c0]
cmp dword [ecx + 0x10], edx
jl 0x40a4d0
mov ecx, dword [ebx]
push 0x104
lea eax, [esp + 0x54]
push 0
push eax
lea eax, [esp + 0xac]
call fcn.00409950
mov edi, dword [ebx]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00409c20
add esp, 0xc
test eax, eax
je 0x40a56c
mov eax, 0x700
jmp 0x40a9df
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
xor esi, esi
cmp byte [eax], 0
je 0x40a5a6
cmp byte [eax + 1], 0
je 0x40a5e2
mov ecx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
adc edx, esi
push esi
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40a5ac
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], esi
mov edi, dword [esp + 0x2c]
push edi
call fcn.0040b59e
mov ecx, dword [ebx]
mov esi, dword [ecx]
add esp, 4
push edi
mov ebx, 1
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.00409340
add esp, 4
cmp eax, edi
je 0x40a5ec
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b9bc
add esp, 4
mov eax, 0x800
jmp 0x40a9df
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 0x104
lea eax, [esp + 0x1ac]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0xac]
push ecx
push 0
push 0
mov dword [ebp], edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esp + 0x1a8]
mov ebx, 0x3a
movzx eax, word [esi]
test ax, ax
je 0x40a638
cmp word [esi + 2], bx
jne 0x40a638
add esi, 4
jmp 0x40a625
cmp ax, 0x5c
jne 0x40a643
add esi, 2
jmp 0x40a625
cmp ax, 0x2f
jne 0x40a64e
add esi, 2
jmp 0x40a625
push 0x41f570
push esi
call fcn.0040d28a
add esp, 8
test eax, eax
je 0x40a665
lea esi, [eax + 8]
jmp 0x40a625
push str..._
push esi
call fcn.0040d28a
add esp, 8
test eax, eax
je 0x40a67c
lea esi, [eax + 8]
jmp 0x40a625
push 0x41f588
push esi
call fcn.0040d28a
add esp, 8
test eax, eax
je 0x40a693
lea esi, [eax + 8]
jmp 0x40a625
push str._.._
push esi
call fcn.0040d28a
add esp, 8
test eax, eax
je 0x40a6ad
lea esi, [eax + 8]
jmp 0x40a625
push 0x103
push esi
lea edx, [ebp + 4]
push 0x104
push edx
call fcn.0040cf9d
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
mov edx, eax
shr edx, 0x17
mov ecx, eax
shr ecx, 0x1e
not dl
add esp, 0x10
and cl, 1
and dl, 1
shr esi, 8
mov byte [esp + 0x17], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 1
je 0x40a704
cmp esi, 7
je 0x40a704
cmp esi, 0xb
je 0x40a704
cmp esi, 0xe
jne 0x40a72b
mov ecx, eax
shr ecx, 2
and cl, 1
mov byte [esp + 0x15], 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 0x40a733
mov bl, byte [esp + 0x17]
mov al, byte [esp + 0x16]
xor esi, esi
test cl, cl
mov dword [ebp + 0x20c], esi
je 0x40a749
mov dword [ebp + 0x20c], 0x10
test al, al
je 0x40a754
or dword [ebp + 0x20c], 0x20
test bl, bl
je 0x40a75f
or dword [ebp + 0x20c], 2
test dl, dl
je 0x40a76a
or dword [ebp + 0x20c], 1
cmp byte [esp + 0x15], 0
je 0x40a778
or dword [ebp + 0x20c], 4
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x22c], ecx
mov ecx, dword [esp + 0x60]
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 + 0x20]
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], si
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
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 edi, 4
mov dword [ebp + 0x210], eax
mov dword [ebp + 0x214], ecx
mov dword [ebp + 0x218], eax
mov dword [ebp + 0x21c], ecx
mov dword [ebp + 0x220], eax
mov dword [ebp + 0x224], ecx
jbe 0x40a9a4
mov byte [esp + 0x22], bl
mov eax, dword [esp + 0x18]
mov cl, byte [ebx + eax]
mov dl, byte [ebx + eax + 1]
mov byte [esp + 0x20], cl
mov edi, 0x41f5a0
lea esi, [esp + 0x20]
mov ecx, 3
xor eax, eax
mov byte [esp + 0x21], dl
repe cmpsb byte [esi], byte es:[edi]
je 0x40a890
mov ecx, dword [esp + 0x18]
movzx edx, byte [ebx + ecx + 2]
lea ebx, [ebx + edx + 4]
lea eax, [ebx + 4]
cmp eax, dword [esp + 0x2c]
jb 0x40a84e
jmp 0x40a9a4
mov esi, dword [esp + 0x18]
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 + 0x16], cl
mov byte [esp + 0x15], dl
je 0x40a907
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.00419a10
mov ecx, edx
sar ecx, 0x1f
mov cl, byte [esp + 0x16]
mov dword [ebp + 0x224], edx
mov dl, byte [esp + 0x15]
mov dword [ebp + 0x220], eax
test cl, cl
je 0x40a957
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.00419a10
mov ecx, edx
mov dword [ebp + 0x214], edx
mov dl, byte [esp + 0x15]
sar ecx, 0x1f
mov dword [ebp + 0x210], eax
test dl, dl
je 0x40a9a4
mov eax, dword [esp + 0x18]
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.00419a10
mov ecx, edx
sar ecx, 0x1f
mov dword [ebp + 0x218], eax
mov dword [ebp + 0x21c], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a9b5
push eax
call fcn.0040b9bc
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c0]
add edi, 8
mov ecx, 0x8c
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x238], edx
xor eax, eax
jmp 0x40a9df
mov eax, 0x10000
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b949
add esp, 0x3ac
ret 8