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

Disassembly:
sub esp, 0x2f8
push ebx
push esi
mov esi, dword [esp + 0x308]
push edi
lea edi, [esp + 0x18]
push ebp
mov eax, dword [esi]
mov ecx, 0x13
mov dword [esp + 0x18], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x50e324]
mov edx, dword [0x50e328]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x4c
cmp dword [esi + 0xc], eax
jne 0x4c6411
mov eax, dword [esi + 0x10]
push eax
call fcn.004c71b0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4c6402
push 2
push 9
call fcn.0048dcc0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
jmp 0x4c6465
push 2
push 0x100
call fcn.00488d30
mov dword [esp + 0x18], eax
add esp, 8
test eax, eax
jne 0x4c6441
push 2
push 9
call fcn.0048dcc0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esi + 0xc]
push eax
push 0x1a66
push 0x100
push edi
call fcn.004c8000
add esp, 0x10
mov dword [esp + 0x28], edi
test edi, edi
je 0x4c64cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4c64cc
mov ebp, dword [esp + 0x28]
mov ecx, ebp
mov bl, byte [ebp + eax - 1]
mov ecx, ebp
cmp byte [ebp], 0
je 0x4c64cc
cmp byte [ebp], bl
jne 0x4c64b1
cmp dword [0x50928c], 0
mov eax, 1
je 0x4c64a6
push ebp
call fcn.004c8040
add esp, 4
test eax, eax
je 0x4c64b1
mov byte [ebp], 0
inc ebp
jmp 0x4c64c6
cmp dword [0x50928c], 0
jne 0x4c64bd
inc ebp
jmp 0x4c64c6
push ebp
call dword [sym.imp.USER32.dll_CharNextA]
mov ebp, eax
cmp byte [ebp], 0
jne 0x4c648a
cmp dword [esi + 0x30], 0
je 0x4c64ef
mov ax, word [esi + 0x34]
lea ecx, [esp + 0x14]
push eax
push 0x5c0
push 4
push ecx
call fcn.004c8000
add esp, 0x10
test eax, eax
jne 0x4c64ff
lea eax, [esp + 0x14]
push 0
push edi
push eax
call fcn.004c6e30
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4c652f
push eax
push 0x4f0
lea eax, [esp + 0x1c8]
push 0x40
push eax
call fcn.004c8000
lea ecx, [esp + 0x1d0]
add esp, 0x10
jmp 0x4c6532
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c6553
mov eax, dword [esp + 0x314]
push eax
push ecx
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.00401920
add esp, 0x10
jmp 0x4c6558
mov byte [esp + 0x78], 0
cmp dword [esp + 0x30c], 1
mov dword [esp + 0x50], 6
lea eax, [esp + 0x78]
mov dword [esp + 0x4c], eax
je 0x4c657a
mov dword [esp + 0x50], 0x1804
mov eax, dword [esi]
test eax, eax
je 0x4c6593
cmp eax, 0x3e8
jl 0x4c658e
cmp eax, 0x3e9
jle 0x4c6593
or dword [esp + 0x50], 0x60
call fcn.004d7a90
test eax, eax
je 0x4c65b8
or dword [esp + 0x50], 0x80000
mov eax, dword [esi]
test eax, eax
je 0x4c65b1
add eax, 0x3e8
jmp 0x4c65b6
add eax, 0x7d0
mov dword [esi], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c65d7
push 0x105
push eax
lea eax, [esp + 0x208]
push eax
call fcn.004c6fe0
add esp, 0xc
jmp 0x4c65df
mov byte [esp + 0x200], 0
mov dword [esp + 0x3c], 0x105
mov byte [esp + 0xb8], 0
lea eax, [esp + 0x200]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x20]
cmp eax, 0xb
je 0x4c662b
test eax, eax
je 0x4c6642
lea ecx, [esp + 0xb8]
push 0x105
push ecx
push eax
push 0x1a8c
call fcn.004c6880
add esp, 0x10
cmp byte [esp + 0xb8], 0
jne 0x4c6642
lea eax, [esp + 0xb8]
push 0
push 0x105
push eax
call fcn.0047a0d0
add esp, 0xc
lea eax, [esp + 0xb8]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0x4c6960
mov dword [esp + 0x48], eax
mov eax, dword [esi]
test eax, eax
je 0x4c6668
movzx eax, ax
mov dword [esp + 0x64], eax
jmp 0x4c6670
mov dword [esp + 0x64], 0x3e8
mov eax, dword [0x50f870]
mov ebx, dword [0x50f874]
lea edx, [esp + 0x68]
mov ebp, dword [0x50f878]
mov ecx, 0x50f870
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x1c]
mov dword [edx + 4], ebx
xor ebx, ebx
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov dword [0x50f870], ecx
mov eax, dword [esp + 0x5c]
mov dword [0x50f874], ebx
mov dword [0x50f878], eax
lea eax, [esp + 0x1c]
mov dword [0x50f87c], ebx
cmp dword [esp + 0x30c], 1
push eax
jne 0x4c66cf
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x4c66d4
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
jne 0x4c671a
call sub.comdlg32.dll_CommDlgExtendedError
mov edi, eax
test edi, edi
je 0x4c6712
call fcn.004d7a50
test eax, eax
je 0x4c6707
cmp edi, 0xffff
je 0x4c6712
push edi
push 0x5b
call fcn.0048dcc0
add esp, 8
mov edi, dword [0x50f874]
jmp 0x4c671f
push edi
push 0x5b
call fcn.0048dcc0
add esp, 8
mov edi, dword [0x50f874]
jmp 0x4c671f
mov edi, 1
test edi, edi
je 0x4c6832
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c67bd
cmp eax, 0xb
je 0x4c67bd
mov byte [esp + 0xb8], bl
call fcn.004d7a90
test eax, eax
je 0x4c6762
lea eax, [esp + 0xb8]
push 0x105
push eax
call fcn.004f1140
add esp, 8
jmp 0x4c679b
cmp dword [0x50f868], ebx
je 0x4c679b
lea eax, [esp + 0xb8]
push 0x105
push eax
mov ecx, dword [0x50f868]
push ecx
call fcn.00470b90
add esp, 0xc
mov ecx, dword [0x50f868]
push ecx
call fcn.00470990
add esp, 4
mov dword [0x50f868], ebx
cmp byte [esp + 0xb8], bl
je 0x4c67bd
lea eax, [esp + 0xb8]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push 0x1a8c
call fcn.004c68e0
add esp, 0xc
lea ebp, [esi + 0x24]
cmp dword [0x50f87c], ebx
je 0x4c67da
mov eax, dword [0x50f87c]
mov ecx, dword [ebp]
mov dword [ecx], eax
mov dword [0x50f87c], ebx
jmp 0x4c67eb
mov eax, dword [ebp]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.00470850
add esp, 8
mov eax, dword [ebp]
mov ecx, dword [eax]
push ecx
call fcn.00470e60
add esp, 4
test eax, eax
jne 0x4c6832
push 0x45e
call fcn.004a4320
add esp, 4
push eax
push 2
push 0xef
call fcn.0048dcc0
add esp, 0xc
mov eax, dword [ebp]
mov ecx, dword [eax]
push ecx
call fcn.00470990
add esp, 4
mov ecx, dword [ebp]
mov dword [ecx], ebx
jmp 0x4c66b3
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
lea edx, [esp + 0x68]
mov ecx, 0x50f870
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
cmp dword [esp + 0x10], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esi], ecx
je 0x4c686d
mov eax, dword [esp + 0x10]
push eax
call fcn.00488e40
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret