Function at 0x437ce0
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d97d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [edi + 4]
push 0x438
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov esi, eax
push 0xf1
push esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x23], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x298]
xor ebx, ebx
mov byte [edi + 0x1b8], 0
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x438085
cmp ebx, eax
jb 0x437d58
xor eax, eax
jmp 0x437d6f
mov eax, dword [edi + 0x290]
test eax, eax
je 0x437d6f
test ebx, ebx
jbe 0x437d6f
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x437d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x438125
mov eax, dword [eax + 8]
sub eax, 0x10
call fcn.00408230
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], 0
cmp dword [esi - 0xc], 0
jne 0x437db0
mov ecx, dword [esp + 0x28]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43804c
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00405a00
mov byte [esp + 0x40], 2
mov esi, dword [esp + 0x14]
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov dword [esp + 0x20], edx
sub eax, dword [esp + 0x20]
mov edx, 1
sub edx, dword [esi - 4]
or eax, edx
jge 0x437e0c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00405d80
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x43812f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x43812f
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x437ea0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x437e8f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x437e8f
call fcn.00408230
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x437e82
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [esp + 0x20]
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x437ea0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00405e30
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00438cf0
mov byte [esp + 0x40], 3
mov eax, dword [eax]
push ebx
push eax
lea esi, [esp + 0x1c]
call fcn.0043a060
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437ee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov esi, 1
sub esi, dword [edx - 4]
sub eax, ecx
or eax, esi
jge 0x437f07
lea eax, [esp + 0x14]
call fcn.00405d80
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004a5cf7
add esp, 8
test eax, eax
jl 0x43812f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x43812f
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
push ecx
push ecx
mov word [edx + eax*2], cx
mov eax, dword [edi + 0x6c]
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
lea edx, [esp + 0x30]
call fcn.00453660
mov byte [esp + 0x40], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x437fba
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x437fa9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x437fa9
call fcn.00408230
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x437f9c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [esp + 0x20]
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x437fba
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00405e30
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437fdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
lea esi, [esp + 0x14]
call fcn.00439fd0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437ffe
mov byte [esp + 0x13], 1
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438044
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438070
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
inc ebx
cmp ebx, dword [edi + 0x298]
mov dword [esp + 0x1c], ebx
jl 0x437d52
mov esi, dword [esp + 0x28]
movzx ecx, byte [esp + 0x13]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x298], 1
mov edx, dword [edi + 0x1c8]
jbe 0x438139
push 0
push 0
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x1c8]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call esi
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x413
push ecx
call ebx
push 0
push eax
call esi
mov edx, dword [edi + 4]
push 0x414
push edx
call ebx
push 0
push eax
call esi
mov eax, dword [edi + 4]
push 0x410
push eax
call ebx
push 0
push eax
call esi
mov ecx, dword [edi + 4]
push 0x411
push ecx
call ebx
push 0
push eax
call esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ef0
push 0x80070057
call fcn.00405ef0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push edx
call esi
mov eax, dword [edi + 0x1c8]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 4]
push 0x413
test eax, eax
push ecx
setne bl
call dword [sym.imp.USER32.dll_GetDlgItem]
movzx ebx, bl
push ebx
push eax
call esi
mov edx, dword [edi + 4]
push 0x414
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call esi
mov eax, dword [edi + 4]
push 0x410
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call esi
mov ecx, dword [edi + 4]
push 0x411
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret