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

Disassembly:
sub esp, 0xd68
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x17c]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x20], 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 + 0xd7c]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x1000471e
push 0x2f
push edi
call fcn.100086a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10004700
push 0x5c
push edi
call fcn.100086a0
mov esi, eax
add esp, 8
test esi, esi
je 0x1000471e
sub esi, edi
lea eax, [esp + 0x578]
push esi
push edi
push eax
call fcn.1000f3f0
add esp, 0xc
mov byte [esp + esi + 0x578], 0
jmp 0x10004726
mov byte [esp + 0x578], 0
mov edx, edi
mov ecx, 0x1003f090
call fcn.10001510
cmp dword [esp + 0xd80], 0
jle 0x10004917
mov ebp, dword [esp + 0xd88]
mov dx, word [0x1002992c]
test ebp, ebp
je 0x10004792
mov ecx, ebp
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004757
sub ecx, esi
je 0x10004792
lea esi, [esp + 0x178]
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 0x10004770
lea edi, [esp + 0x178]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10004785
mov word [edi], dx
mov eax, dword [esp + 0xd84]
mov ebx, dword [eax]
mov esi, ebx
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100047a0
lea edi, [esp + 0x178]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100047b1
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0xd80], 1
rep movsb byte es:[edi], byte [esi]
jle 0x10004839
mov ax, word [0x10029930]
mov ebp, 1
nop dword [eax]
lea edi, [esp + 0x178]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x100047e8
mov ecx, dword [esp + 0xd84]
mov word [edi], ax
mov ebx, dword [ecx + ebp*4]
mov esi, ebx
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x10004801
lea edi, [esp + 0x178]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10004812
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 + 0xd80]
jl 0x100047e0
mov ebp, dword [esp + 0xd88]
lea edi, [esp + 0x178]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10004841
mov word [edi], dx
test ebp, ebp
je 0x10004861
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10004855
sub ebp, ecx
jne 0x100048a8
xor ecx, ecx
mov al, byte [esp + ecx + 0x178]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x977], al
test al, al
jne 0x10004863
lea edx, [esp + 0x978]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004881
lea edi, [esp + 0x178]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004892
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 + 0x178]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100048b0
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 + 0x178]
push 0xa
push eax
call fcn.100084d0
add esp, 8
test eax, eax
je 0x10004913
nop dword [eax]
mov byte [eax], 0
inc eax
push 0xa
push eax
call fcn.100084d0
add esp, 8
test eax, eax
jne 0x10004900
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], 0x58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x178]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004940
sub ecx, edx
mov dword [esp + 0x38], 1
mov ecx, 0
mov dword [esp + 0x3c], 0x1003f090
lea eax, [esp + 0x178]
mov dword [esp + 0x30], ecx
cmove eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x578]
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 0x10004992
sub ecx, edx
lea eax, [esp + 0x578]
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x4c], eax
test ebx, ebx
je 0x100049c6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100049b7
mov dword [esp + 0x50], ebx
sub ecx, edx
jne 0x100049ce
mov dword [esp + 0x50], 0
mov esi, dword [esp + 0xd8c]
xor ecx, ecx
mov dword [esp + 0x58], ecx
test esi, esi
mov dword [esp + 0x5c], ecx
mov eax, 0x80008
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov ecx, 0x80208
cmovne eax, ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
jne 0x10004a14
xor esi, esi
jmp 0x10004aca
mov edi, 0x1003f090
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10004a20
sub edi, ecx
lea edx, [edi + 0x1003f091]
mov dword [esp + 0x78], edx
test esi, esi
je 0x10004ac5
cmp byte [edx], al
je 0x10004ac5
xor esi, esi
xor ebp, ebp
mov ecx, edx
mov ebx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004a52
sub ecx, dword [esp + 0x14]
lea eax, [edx + 1]
inc esi
mov dword [esp + ebp + 0xf8], ecx
add eax, ecx
mov dword [esp + ebp + 0x7c], eax
lea ebp, [esi*4]
mov edx, dword [esp + ebp + 0x78]
cmp byte [edx], 0
jne 0x10004a47
mov byte [0x1004708f], 0
mov esi, 0x1004708f
test ebx, ebx
js 0x10004ac2
nop
mov eax, dword [esp + ebx*4 + 0xf8]
sub esi, eax
push eax
push dword [esp + ebx*4 + 0x7c]
push esi
call fcn.10009970
dec esi
push edi
push 0x1003f090
mov byte [esi], 0x5c
sub esi, edi
push esi
call fcn.10009970
dec esi
add esp, 0x18
sub ebx, 1
mov byte [esi], 0x7c
jns 0x10004a90
inc esi
jmp 0x10004aca
mov esi, 0x1003f090
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004ad7
cmp eax, 1
jne 0x10004add
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xd68
ret