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

Disassembly:
sub esp, 0xc6c
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x7c]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x24], ebx
call fcn.10008a00
push 0x58
lea eax, [esp + 0x30]
push 0
push eax
call fcn.10008a00
add esp, 0x18
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, dword [esp + 0xc80]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test edi, edi
je 0x1000439d
push 0x2f
push edi
call fcn.100086a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000437f
push 0x5c
push edi
call fcn.100086a0
mov esi, eax
add esp, 8
test esi, esi
je 0x1000439d
sub esi, edi
lea eax, [esp + 0x478]
push esi
push edi
push eax
call fcn.1000f3f0
add esp, 0xc
mov byte [esp + esi + 0x478], 0
jmp 0x100043a5
mov byte [esp + 0x478], 0
mov edx, edi
mov ecx, 0x1002d480
call fcn.10001510
cmp dword [esp + 0xc84], 0
jle 0x10004591
mov ebp, dword [esp + 0xc8c]
mov dx, word [0x1002992c]
test ebp, ebp
je 0x1000440f
mov ecx, ebp
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100043d6
sub ecx, esi
je 0x1000440f
lea esi, [esp + 0x78]
mov ecx, ebp
sub esi, ebp
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x100043f0
lea edi, [esp + 0x78]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10004402
mov word [edi], dx
mov eax, dword [esp + 0xc88]
mov ebx, dword [eax]
mov esi, ebx
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10004420
lea edi, [esp + 0x78]
sub ebx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004430
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0xc84], 1
rep movsb byte es:[edi], byte [esi]
jle 0x100044b7
mov ax, word [0x10029930]
mov ebp, 1
nop dword [eax + eax]
lea edi, [esp + 0x78]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x10004465
mov ecx, dword [esp + 0xc88]
mov word [edi], ax
mov ebx, dword [ecx + ebp*4]
mov esi, ebx
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x10004480
lea edi, [esp + 0x78]
sub ebx, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10004490
mov ecx, ebx
inc ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, dword [esp + 0xc84]
jl 0x10004460
mov ebp, dword [esp + 0xc8c]
lea edi, [esp + 0x78]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100044c0
mov word [edi], dx
test ebp, ebp
je 0x100044e0
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x100044d4
sub ebp, ecx
jne 0x10004526
xor ecx, ecx
mov al, byte [esp + ecx + 0x78]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x877], al
test al, al
jne 0x100044e2
lea edx, [esp + 0x878]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10004500
lea edi, [esp + 0x78]
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004510
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10004530
mov eax, dword [str.All_Files_n._n]
mov dword [ecx], eax
mov eax, dword [0x10029938]
mov dword [ecx + 4], eax
mov eax, dword [0x1002993c]
mov dword [ecx + 8], eax
mov ax, word [0x10029940]
mov word [ecx + 0xc], ax
mov al, byte [0x10029942]
mov byte [ecx + 0xe], al
lea eax, [esp + 0x78]
push 0xa
push eax
call fcn.100084d0
add esp, 8
test eax, eax
je 0x10004589
mov byte [eax], 0
inc eax
push 0xa
push eax
call fcn.100084d0
add esp, 8
test eax, eax
jne 0x10004576
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], 0x58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100045b2
sub ecx, edx
mov dword [esp + 0x38], 1
mov ecx, 0
mov dword [esp + 0x3c], 0x1002d480
lea eax, [esp + 0x78]
mov dword [esp + 0x30], ecx
cmove eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x478]
mov dword [esp + 0x2c], eax
lea edx, [ecx + 1]
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x48], 0x200
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004601
sub ecx, edx
lea eax, [esp + 0x478]
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x4c], eax
test ebx, ebx
je 0x10004635
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004626
mov dword [esp + 0x50], ebx
sub ecx, edx
jne 0x1000463d
mov dword [esp + 0x50], 0
xor eax, eax
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x1002d480
test ebp, ebp
je 0x1000467b
cmp ebp, 1
jne 0x10004681
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc6c
ret