Function at 0x10032490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101ff4e7
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x1003282b
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x461
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x1003282b
mov eax, 0x102aa0a0
call fcn.10031cc0
push 1
push esi
call edi
push ebx
push ebx
push 0x1032
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, ebx
je 0x1003282b
push 0xffffffffffffffff
push ebx
mov eax, 0x1029624c
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.10007880
mov dword [esp + 0x4c0], ebx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x10032580
lea edi, [eax - 1]
lea eax, [esp + 0x38]
call fcn.1000f660
cmp word [eax], 0x5c
je 0x10032580
lea ecx, [esp + 0x38]
push ecx
mov edx, 0x102328c0
call fcn.1000bb30
push 0x208
lea edx, [esp + 0x92]
push ebx
push edx
mov word [esp + 0x98], bx
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
lea eax, [esp + 0x8c]
push eax
push 0x104
push 0x464
push ecx
call edi
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
mov word [esp + 0x29c], bx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.10007880
mov byte [esp + 0x4c0], 1
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
jmp 0x10032600
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10032600
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x24]
call fcn.1000c810
cmp esi, 1
jne 0x100326d1
cmp word [esp + 0x8c], bx
je 0x100329e5
lea eax, [esp + 0x1c]
call fcn.10033570
cmp byte [0x102a9a94], bl
je 0x100329e5
mov ecx, 0x102aa0a0
call fcn.10007830
test al, al
jne 0x10032807
xor edi, edi
mov esi, 0x102aa0a0
call fcn.10031bd0
cmp dword [eax + 0x18], 8
jb 0x10032676
mov eax, dword [eax + 4]
jmp 0x10032679
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x100326a7
test al, 0x10
je 0x100326a7
mov byte [esp + 0x4c0], bl
lea ecx, [esp + 0x1c]
call fcn.10001dd0
mov dword [esp + 0x4c0], esi
jmp 0x10032a00
mov byte [esp + 0x4c0], bl
lea ecx, [esp + 0x1c]
call fcn.10001dd0
mov dword [esp + 0x4c0], esi
lea ecx, [esp + 0x38]
call fcn.10001dd0
mov eax, 1
jmp 0x10032a0b
jle 0x100329e5
mov eax, dword [esp + 0x18]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp esi, ebx
mov edi, eax
jle 0x100327ed
push 0x208
lea ecx, [esp + 0x2a2]
push ebx
sub esi, 1
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x2a8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x2a0]
push edx
push ebx
push edi
lea eax, [esp + 0x28]
push eax
call fcn.10033600
test eax, eax
jle 0x10032745
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.10007880
jmp 0x10032758
push ebx
push 0x1022fcf8
lea esi, [esp + 0x24]
call fcn.10007a00
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x29c]
mov word [esp + 0x4a4], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10032770
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2a0]
push ecx
lea ecx, [esp + 0x24]
call fcn.1000c810
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x100327a0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100327d0
test al, 0x10
je 0x100327d0
lea edx, [esp + 0x1c]
push edx
call fcn.100333a0
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov esi, 0x102aa0a0
call fcn.10033760
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 2
push edi
push 0x100c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, ebx
mov edi, eax
jg 0x100326f1
cmp byte [0x102a9a94], bl
je 0x10032835
mov ecx, 0x102aa0a0
call fcn.10007830
test al, al
je 0x100329e5
mov byte [esp + 0x4c0], bl
lea ecx, [esp + 0x1c]
call fcn.10001dd0
mov dword [esp + 0x4c0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.10001dd0
mov eax, 1
jmp 0x10032a0b
lea edx, [esp + 0x1c]
push edx
mov edx, 0x1022fcf8
call fcn.1000bb00
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 0x1032
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x102aa0a0
mov esi, eax
call fcn.10056be0
cmp esi, eax
jle 0x10032807
lea edx, [esp + 0x8c]
lea eax, [esp + 0x54]
call fcn.10007690
mov byte [esp + 0x4c0], 2
lea ecx, [esp + 0x14]
push ecx
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x58]
mov dword [esp + 0x18], 0x22
call fcn.10016200
cmp eax, 0xffffffff
je 0x10032989
xor ebx, ebx
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x14], ebx
jle 0x100329d2
mov edi, ebx
lea eax, [esp + 0x54]
call fcn.1000f660
cmp word [eax], 0x22
je 0x1003292b
lea eax, [esp + 0x54]
call fcn.1000f660
movzx eax, word [eax]
push eax
mov eax, 1
lea edi, [esp + 0x20]
call fcn.10031c10
cmp ebx, 1
jl 0x10032976
lea edi, [ebx - 1]
lea eax, [esp + 0x54]
call fcn.1000f660
cmp word [eax], 0x22
jne 0x10032976
mov edi, ebx
lea eax, [esp + 0x54]
call fcn.1000f660
cmp word [eax], 0x20
jne 0x10032976
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10032976
lea ebx, [eax - 1]
mov eax, 1
lea esi, [esp + 0x1c]
call fcn.10007ad0
mov ebx, dword [esp + 0x14]
jmp 0x10032976
cmp dword [esp + 0x30], 0
je 0x10032976
lea edx, [esp + 0x38]
push edx
lea esi, [esp + 0x74]
call fcn.100076d0
mov byte [esp + 0x4c0], 3
push 0
lea eax, [esp + 0x20]
push eax
or eax, 0xffffffff
call fcn.1000c700
mov eax, esi
call fcn.10033570
lea eax, [esp + 0x1c]
call fcn.1000bb60
mov byte [esp + 0x4c0], 2
mov ecx, esi
call fcn.10001dd0
add ebx, 1
cmp ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
jl 0x100328b4
jmp 0x100329d2
cmp dword [esp + 0x4c], 0
je 0x100329d2
cmp dword [esp + 0x68], 0
je 0x100329d2
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x74]
call fcn.100076d0
mov byte [esp + 0x4c0], 4
push 0
lea edx, [esp + 0x58]
push edx
or eax, 0xffffffff
call fcn.1000c700
mov eax, esi
call fcn.10033570
mov byte [esp + 0x4c0], 2
mov ecx, esi
call fcn.10001dd0
mov byte [esp + 0x4c0], 1
lea ecx, [esp + 0x54]
call fcn.10001dd0
xor ebx, ebx
mov byte [esp + 0x4c0], bl
lea ecx, [esp + 0x1c]
call fcn.10001dd0
mov dword [esp + 0x4c0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.10001dd0
xor eax, eax
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret 4