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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
mov ebx, ecx
lea ecx, [esp + 0x74]
push edi
call fcn.00411207
mov ecx, dword [ebp + 0xc]
xor eax, eax
push 0x490980
mov dword [esp + 0x28], eax
call fcn.00404f98
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00404d37
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x54], eax
inc dword [eax]
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00404d37
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], eax
inc dword [eax]
call fcn.00411207
lea ecx, [esp + 0x38]
call fcn.00411207
mov eax, dword [edi + 4]
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.00404d37
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.0041436a
push eax
lea ecx, [esp + 0x30]
call fcn.0041433f
mov esi, 0x4b8900
push esi
push dword [esp + 0x30]
jmp 0x46f144
push eax
lea ecx, [esp + 0x3c]
call fcn.00411821
push 0x4b9150
lea ecx, [esp + 0x3c]
call fcn.00465872
push 0x4b9154
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], eax
call fcn.00465872
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x46f1dc
cmp esi, 0xffffffff
je 0x46f1dc
cmp esi, eax
jb 0x46f1dc
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.004117e0
push 0x4b8900
lea ecx, [esp + 0x18]
call fcn.00411900
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x78]
sub esi, eax
dec esi
inc eax
push esi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00411462
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x18]
call fcn.004117e0
mov esi, 0x4b8900
lea ecx, [esp + 0x14]
push esi
call fcn.00411900
push esi
push 0
call fcn.00424588
pop ecx
pop ecx
test eax, eax
jne 0x46f0a6
push esi
lea ecx, [esp + 0x18]
call fcn.00411900
xor esi, esi
inc esi
cmp dword [esp + 0x18], esi
jbe 0x46f18c
push esi
lea ecx, [esp + 0x18]
call fcn.00411609
cmp word [eax], 0x7c
jne 0x46f185
push esi
lea ecx, [esp + 0x18]
call fcn.00411609
xor ecx, ecx
mov word [eax], cx
inc esi
cmp esi, dword [esp + 0x18]
jb 0x46f166
cmp dword [ebp + 0x10], 6
jb 0x46f1a1
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x14]
call fcn.00468b59
mov dword [esp + 0x24], eax
push 0x1fffe
call fcn.00420f16
pop ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0041433f
cmp dword [ebp + 0x10], 5
jb 0x46f1f1
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x10]
mov ecx, esi
call fcn.00404d37
mov eax, dword [esi + 8]
mov esi, dword [esp + 0xc]
push dword [eax]
push esi
call fcn.00422f1c
pop ecx
pop ecx
jmp 0x46f1fa
mov eax, dword [ebx]
push 0
push 2
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00456f18
jmp 0x46f3f4
mov esi, dword [esp + 0xc]
xor eax, eax
mov word [esi], ax
push 0x58
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.00422f40
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [ebp + 0x10], 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa4], esi
mov esi, 0x80004
mov dword [esp + 0x88], 0x58
mov dword [esp + 0xa8], 0xffff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc4], 0x490980
jb 0x46f2f6
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
cmp eax, 0x1f
jg 0x46f2f6
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test eax, eax
js 0x46f2f6
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test al, 0x10
je 0x46f2a2
add esi, 2
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test al, 8
je 0x46f2b7
or esi, 0x2000
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test al, 4
je 0x46f2cc
or esi, 0x200
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test al, 2
je 0x46f2e1
or esi, 0x800
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040502b
test al, 1
je 0x46f2f6
or esi, 0x1000
cmp byte [ebp + 0x14], 0
lea eax, [esp + 0x88]
mov dword [esp + 0xbc], esi
push eax
je 0x46f3af
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x46f3ca
push dword [esp + 0xa4]
test esi, 0x200
je 0x46f3c0
call fcn.00422d5c
pop ecx
push dword [esp + 0xa4]
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.00411a36
mov eax, dword [esp + 0xa4]
add eax, 2
xor ebx, ebx
jmp 0x46f388
push eax
call fcn.00422d5c
lea ecx, [esp + 0x5c]
mov dword [esp], 0x4b8900
mov esi, eax
call fcn.00411900
push dword [esp + 0xa4]
lea ecx, [esp + 0x5c]
call fcn.00411900
mov eax, dword [esp + 0xa4]
add eax, 2
lea eax, [eax + esi*2]
mov dword [esp + 0xa4], eax
cmp word [eax], bx
jne 0x46f356
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x58]
push eax
call fcn.00404f3c
lea ecx, [esp + 0x58]
call fcn.00411cb6
jmp 0x46f3db
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x46f3ca
push dword [esp + 0xa4]
mov ecx, dword [ebp + 0xc]
call fcn.00404f98
jmp 0x46f3db
xor eax, eax
push eax
mov eax, dword [ebx]
push 1
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00456f18
mov eax, dword [esp + 0x10]
dec dword [eax]
jne 0x46f3f4
push eax
call fcn.00420f8c
pop ecx
push dword [esp + 0xc]
call fcn.00420f8c
pop ecx
mov eax, dword [esp + 0x30]
dec dword [eax]
jne 0x46f40d
push eax
call fcn.00420f8c
pop ecx
push dword [esp + 0x2c]
call fcn.00420f8c
pop ecx
lea ecx, [esp + 0x38]
call fcn.00411cb6
lea ecx, [esp + 0x14]
call fcn.00411cb6
lea ecx, [esp + 0x68]
call fcn.00411cb6
lea ecx, [esp + 0x48]
call fcn.00411cb6
lea ecx, [esp + 0x78]
call fcn.00411cb6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10