Function at 0x431950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466893
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x40]
sub ebx, dword [esi + 0x3c]
mov eax, dword [esi + 0x58]
lea edi, [esi + 0x48]
sar ebx, 7
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
cmp dword [edi + 0xc], eax
jbe 0x43199c
call fcn.00448717
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x4319b4
call fcn.00448717
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
push edx
mov edx, dword [ebp - 0x20]
push edx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0041da80
mov dword [ebp - 0x10], 0
test ebx, ebx
jbe 0x431a2b
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x3c]
sar ecx, 7
cmp dword [ebp - 0x10], ecx
jb 0x4319e9
call fcn.00448717
mov ebx, dword [ebp - 0x10]
mov edx, dword [esi + 0x3c]
shl ebx, 7
cmp byte [ebx + edx + 0x20], 0
je 0x431a1f
mov eax, dword [esi + 0x40]
sub eax, edx
sar eax, 7
cmp dword [ebp - 0x10], eax
jb 0x431a0b
call fcn.00448717
mov ecx, dword [esi + 0x3c]
cmp dword [ebx + ecx], 0xffffffff
jne 0x431a1f
lea edx, [ebp - 0x10]
push edx
mov ecx, edi
call fcn.004211f0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x2c]
jb 0x4319d6
lea eax, [ebp - 0x2c]
push eax
call fcn.004193c0
push 0x46e004
push eax
lea ecx, [ebp - 0x18]
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.0040f8b0
add esp, 0x10
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
mov dword [ebp - 0x10], ebx
sar edx, 2
test edx, edx
ja 0x431ac9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x431a89
lea ecx, [ebp - 0xb8]
call fcn.00422fe0
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00423e70
lea ecx, [ebx + 0x400]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00422000
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
sar edx, 2
cmp ebx, edx
jb 0x431b1b
call fcn.00448717
mov eax, dword [edi + 0xc]
lea ecx, [ebx*4]
mov ebx, dword [eax + ecx]
add eax, ecx
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x3c]
sar eax, 7
cmp ebx, eax
jb 0x431b3c
call fcn.00448717
mov ecx, dword [esi + 0x3c]
shl ebx, 7
lea edx, [ebx + ecx + 0x3c]
push edx
lea ecx, [ebp - 0xb8]
call fcn.00422930
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x10]
sar eax, 2
cmp ebx, eax
jb 0x431b67
call fcn.00448717
mov eax, dword [edi + 0xc]
lea ecx, [ebx*4]
mov ebx, dword [eax + ecx]
add eax, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x3c]
sar ecx, 7
cmp ebx, ecx
jb 0x431b8b
call fcn.00448717
mov edx, dword [esi + 0x3c]
shl ebx, 7
mov eax, dword [ebx + edx + 0x48]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00421ff0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 2
cmp dword [ebp - 0x10], ecx
jb 0x431bb4
call fcn.00448717
mov eax, dword [edi + 0xc]
mov edx, dword [esi + 0x40]
add eax, dword [ebp - 0x14]
sub edx, dword [esi + 0x3c]
mov ebx, dword [eax]
sar edx, 7
cmp ebx, edx
jb 0x431bce
call fcn.00448717
shl ebx, 7
add ebx, dword [esi + 0x3c]
lea eax, [ebp - 0x18]
add ebx, 4
push ebx
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041c470
push 0x46e3ec
push eax
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 4
call fcn.0040f8b0
add esp, 0x18
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
call fcn.00422920
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431c2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431c51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov ebx, dword [ebp - 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x431c66
call fcn.00448717
mov edx, dword [esi + 0x40]
mov eax, dword [edi + 0xc]
sub edx, dword [esi + 0x3c]
lea ecx, [ebx*4]
mov ebx, dword [eax + ecx]
add eax, ecx
sar edx, 7
mov dword [ebp - 0x14], ecx
cmp ebx, edx
jb 0x431c8a
call fcn.00448717
mov eax, dword [esi + 0x3c]
shl ebx, 7
lea ecx, [ebx + eax + 0x40]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.004228f0
lea ecx, [ebp - 0xb8]
call fcn.00423e60
lea ecx, [ebp - 0xb8]
call fcn.00422010
cmp eax, 0x6000
jne 0x431e36
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0xb8]
call fcn.00422380
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 0x38]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431cfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x431e36
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00422380
mov dword [ebp - 0x3c], eax
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
mov byte [ebp - 4], 6
sar edx, 2
cmp dword [ebp - 0x10], edx
jb 0x431d2e
call fcn.00448717
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x14]
mov ebx, dword [eax]
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x3c]
sar eax, 7
cmp ebx, eax
jb 0x431d48
call fcn.00448717
mov ecx, dword [esi + 0x3c]
mov edx, dword [ebp - 0x3c]
shl ebx, 7
lea ecx, [ebx + ecx + 0x78]
push edx
call fcn.0040f840
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431d7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x484394]
mov eax, dword [edx + 0xc]
mov ecx, 0x484394
call eax
mov ebx, dword [edi + 0x10]
sub ebx, dword [edi + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x2c]
mov ecx, 0x64
sar ebx, 2
mov dword [ebp - 0x4c], 0x1004
mov word [ebp - 0x48], cx
mov dword [ebp - 0x44], 0
test eax, eax
je 0x431deb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x431deb
mov eax, dword [ebp - 0x10]
push 0
push 0x3e8
shl eax, 0x10
push 0
or eax, ebx
push eax
mov eax, dword [esi + 0x2c]
lea edx, [ebp - 0x4c]
push edx
push 0xbd2
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00422610
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
inc eax
sar ecx, 2
mov dword [ebp - 0x10], eax
cmp eax, ecx
jb 0x431ac6
jmp 0x431a89
mov edx, dword [0x484394]
mov eax, dword [edx + 0xc]
mov ecx, 0x484394
call eax
mov ebx, dword [edi + 0x10]
sub ebx, dword [edi + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x2c]
xor ecx, ecx
sar ebx, 2
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x24], cx
mov dword [ebp - 0x28], 0x1000
test eax, eax
je 0x431e9c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x431e9c
mov eax, dword [ebp - 0x10]
push 0
push 0x3e8
shl eax, 0x10
push 0
or eax, ebx
push eax
mov eax, dword [esi + 0x2c]
lea edx, [ebp - 0x28]
push edx
push 0xbd2
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00422610
cmp dword [ebp - 0x10], 0xffffffff
je 0x431a89
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret