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

Disassembly:
push 0xffffffffffffffff
push 0x47eb9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
mov ebx, dword [esp + 0x288]
push ebp
mov ebp, dword [esp + 0x288]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x284]
test ebp, 0x40000000
mov dword [esp + 0x18], esi
je 0x43156b
lea ecx, [esp + 0x74]
call fcn.0043a8f0
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x27c], 0
call fcn.0043ae00
mov eax, dword [esp + 0x2a0]
mov ecx, dword [esp + 0x29c]
push eax
mov eax, dword [esp + 0x290]
lea edx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x290]
push edx
mov edx, dword [esp + 0x28c]
push ebp
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.00431770
test eax, eax
jne 0x431546
push ebx
lea ecx, [esp + 0x78]
call fcn.0043baa0
lea ecx, [esp + 0x74]
mov dword [esp + 0x278], 0xffffffff
call fcn.0043a990
mov eax, 1
jmp 0x431746
cmp eax, 1
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x74]
jne 0x431566
call fcn.0043a990
xor eax, eax
jmp 0x431746
call fcn.0043a990
test edi, edi
jne 0x431574
mov edi, str.All_Files__._.
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
mov al, byte [eax + edi - 1]
push edi
mov byte [esp + 0x17], al
call esi
inc eax
push eax
call fcn.0046fea8
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x14], edx
je 0x431746
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [edx], 0
je 0x4315d7
mov eax, edx
mov cl, byte [esp + 0x13]
cmp byte [eax], cl
jne 0x4315cf
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4315c4
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x280]
mov ecx, dword [esp + 0x298]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2a0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x29c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28c]
test eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], edx
jne 0x43162d
mov dword [esp + 0x34], 1
jmp 0x431633
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1a4]
call fcn.00443920
and eax, 0xcf0
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x1c], 0x4c
jne 0x43165a
mov dword [esp + 0x1c], 0x58
mov eax, dword [esp + 0x288]
cmp eax, 0x100
jae 0x431673
lea edx, [esp + 0xa0]
push edx
push eax
jmp 0x431682
jne 0x4316b0
lea edx, [esp + 0xa0]
push edx
push 0x10007
mov ecx, dword [esp + 0x20]
call fcn.00430de0
test eax, eax
jne 0x4316a3
mov eax, dword [esp + 0x14]
push eax
call fcn.0046fd2e
add esp, 4
xor eax, eax
jmp 0x431746
lea ecx, [esp + 0xa0]
mov dword [esp + 0x48], ecx
jmp 0x4316c2
mov edx, eax
sub edx, 0x101
neg edx
sbb edx, edx
and edx, eax
mov dword [esp + 0x48], edx
mov eax, ebp
and eax, 0x3fffffff
jne 0x4316e0
mov eax, ebp
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0xfffff002
add eax, 0x10001804
mov edi, dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov ebx, dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov dword [esp + 0x50], eax
and ebp, 0x80000000
test ebp, ebp
je 0x431703
lea ecx, [esp + 0x1c]
push ecx
call edi
jmp 0x43170a
lea edx, [esp + 0x1c]
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x431726
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x431726
mov eax, dword [esp + 0x38]
mov byte [eax], 0
jmp 0x4316f6
mov eax, dword [esp + 0x29c]
test eax, eax
je 0x431737
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
push edx
call fcn.0046fd2e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x26c
ret 0x24