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

Disassembly:
push 0xffffffffffffffff
push 0x5494b7
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x160]
lea eax, [esp + 0x1c]
call fcn.0041ae00
xor esi, esi
mov dword [esp + 0x154], esi
call fcn.004d8970
mov ecx, 1
lock xadd dword [eax], ecx
push esi
call fcn.0051ee35
add esp, 4
push 2
push 0x8001
call fcn.0051feaa
mov ebp, eax
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], ebp
call fcn.0041adc0
lea ecx, [esp + 0x24]
call fcn.0041adc0
mov dword [esp + 0x28], esi
mov ecx, 0x59f5c0
lea edi, [esp + 0xcc]
call fcn.00432040
mov byte [esp + 0x154], 3
call fcn.00436750
push eax
mov al, 1
lea ecx, [esp + 0x38]
call fcn.004369b0
mov eax, dword [esp + 0x40]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x44]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, dword [esp + 0x3c]
push eax
xor eax, eax
call fcn.00432e20
mov al, 1
mov ecx, edi
call fcn.004328a0
call fcn.004c1f10
movzx edx, al
push edx
mov esi, edi
call fcn.00432b40
push 0
push 0
mov ecx, edi
call fcn.00432610
push 0
push 0
push 1
mov ecx, edi
call fcn.00433bd0
mov eax, ebx
call fcn.004ba710
test al, al
je 0x4c210a
mov eax, ebx
lea esi, [esp + 0x20]
call fcn.0041ae20
jmp 0x4c2152
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.00417c30
mov ecx, eax
push 0x10000
mov eax, ebp
call fcn.0041d940
mov ecx, esi
call fcn.0041add0
lea eax, [esp + 0x2c]
push eax
call fcn.00417c00
lea esi, [esp + 0x20]
call fcn.0041ae20
call fcn.0040c720
or ecx, 0xffffffff
lock xadd dword [eax], ecx
lea ecx, [esp + 0x2c]
call fcn.0041add0
cmp byte [esp + 0x168], 0
je 0x4c22bc
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0xcc]
call fcn.004325f0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ebp
call fcn.0041d8e0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x20]
push ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], 0x4c1f60
mov dword [esp + 0x58], 0x70
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
push ebp
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4c21e9
xor edx, edx
mov eax, 0x59f5c0
lea esi, [esp + 0x24]
mov word [ebp], dx
call fcn.0041ae20
test edi, edi
je 0x4c2209
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4c2209
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push edi
push eax
call edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 0x18]
call fcn.004031b0
lea eax, [esp + 0x18]
call fcn.00403100
test eax, eax
je 0x4c241b
mov eax, ebp
lea esi, [esp + 0x18]
call fcn.0041aed0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 4
call fcn.004178a0
push eax
lea ecx, [esp + 0x28]
lea esi, [esp + 0x68]
mov byte [esp + 0x158], 5
call fcn.00417f00
push eax
mov eax, dword [esp + 0x160]
call fcn.004d0160
call fcn.0040c720
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov ecx, esi
call fcn.0041add0
call fcn.0040c720
or edx, 0xffffffff
lock xadd dword [eax], edx
lea ecx, [esp + 0x34]
call fcn.0041add0
lea ecx, [esp + 0x18]
call fcn.0041add0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x154], 2
call fcn.004320e0
lea eax, [esp + 0x20]
push eax
jmp 0x4c2481
call fcn.004d8970
mov edx, 1
lock xadd dword [eax], edx
push 0
call fcn.0051ee35
add esp, 4
push 2
push 0x800
call fcn.0051feaa
mov edi, dword [esp + 0x16c]
add esp, 8
mov esi, eax
push 0x1000
mov ecx, edi
mov dword [esp + 0x38], esi
call fcn.0041d940
mov ecx, 0xffe
sub ecx, eax
shr eax, 1
push ecx
lea eax, [esi + eax*2 + 2]
mov ecx, edi
call fcn.0041d940
push 0x54
lea edx, [esp + 0x74]
push 0
push edx
mov dword [esp + 0x78], 0
call fcn.00522130
add esp, 0xc
lea ecx, [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.0041ae00
mov byte [esp + 0x154], 8
lea eax, [esp + 0xcc]
mov dword [esp + 0x6c], 0x4c
call fcn.004325f0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], 0x8000
call fcn.0041d8e0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x9c], eax
call fcn.0041d8e0
cmp byte [esp + 0x16c], 0
lea edx, [esp + 0x20]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0x8080c
mov dword [esp + 0xac], edx
je 0x4c23c7
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x4c23d2
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
lea ecx, [esp + 0x18]
test eax, eax
jne 0x4c23f9
call fcn.0041add0
push esi
call fcn.0051ee35
add esp, 4
call fcn.004d8970
or edx, 0xffffffff
lock xadd dword [eax], edx
jmp 0x4c229e
call fcn.0041add0
push esi
mov byte [esp + 0x158], 3
call fcn.0051ee35
add esp, 4
call fcn.004d8970
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp word [ebp], 0
je 0x4c2468
mov eax, ebp
lea esi, [esp + 0x2c]
call fcn.0041aed0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 0xb
call fcn.004178a0
push eax
mov eax, dword [esp + 0x160]
call fcn.004d0160
call fcn.0040c720
or ecx, 0xffffffff
lock xadd dword [eax], ecx
lea ecx, [esp + 0x34]
call fcn.0041add0
mov ecx, esi
call fcn.0041add0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x154], 2
call fcn.004320e0
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x158], 1
call fcn.004c24d0
push ebp
call fcn.0051ee35
add esp, 4
call fcn.004d8970
or ecx, 0xffffffff
lock xadd dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.0041add0
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret