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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302b4
call fcn.004664c0
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
mov word [esp + 0x102c8], ax
lea eax, [esp + 0x102ca]
push eax
call fcn.00456db0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004019d1
lea ecx, [esp + 0x48]
call fcn.004019d1
lea ecx, [esp + 0x38]
call fcn.004019d1
lea ecx, [esp + 0x28]
call fcn.004019d1
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
push 0x46df98
call fcn.004132c2
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x7fff
push ecx
call fcn.00412b6d
pop ecx
push eax
lea eax, [esp + 0x2c8]
push eax
call fcn.00456e2a
xor eax, eax
add esp, 0xc
mov word [esp + 0x102be], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0x104
push ecx
call fcn.00412b6d
pop ecx
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00456e2a
xor eax, eax
mov word [esp + 0x2c4], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add esp, 0xc
call fcn.00412b6d
push eax
call fcn.0040f89b
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
pop ecx
mov dword [esp + 0x24], esi
call fcn.00412ba1
xor ecx, ecx
push 0x46e074
push esi
mov word [esi + eax*2], cx
call fcn.00457d28
pop ecx
pop ecx
test eax, eax
je 0x41ed6b
push eax
lea eax, [esp + 0x2c]
call fcn.00402172
push 0x473744
lea edx, [esp + 0x2c]
call fcn.00421ede
push 0x473748
lea edx, [esp + 0x2c]
mov edi, eax
call fcn.00421ede
mov ebx, eax
cmp edi, 0xffffffff
je 0x41edea
cmp ebx, 0xffffffff
je 0x41edea
cmp ebx, edi
jb 0x41edea
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
call fcn.0040402d
push 0x46e074
lea esi, [esp + 0x14]
call fcn.00401a27
mov eax, ebx
lea ecx, [esp + 0x28]
sub eax, edi
push ecx
dec eax
lea ebx, [edi + 1]
lea ecx, [esp + 0x4c]
call fcn.00404a77
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.0040402d
mov edi, 0x46e074
push edi
call fcn.00401a27
push edi
push 0
call fcn.00457d28
pop ecx
pop ecx
test eax, eax
jne 0x41ecc9
mov ebx, dword [ebp + 0xc]
push 0x46e074
lea esi, [esp + 0x14]
call fcn.00401a27
xor esi, esi
inc esi
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x41eda8
lea eax, [esp + 0x10]
call fcn.00402050
cmp word [eax], 0x7c
jne 0x41eda1
lea eax, [esp + 0x10]
call fcn.00402050
xor ecx, ecx
mov word [eax], cx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x41ed84
push dword [esp + 0x24]
call fcn.0045504c
cmp dword [ebp + 0x14], 6
pop ecx
jb 0x41edc7
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
call fcn.00412da2
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x14], 5
jb 0x41ee0b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.00412b6d
push eax
lea eax, [esp + 0x102c4]
push eax
call fcn.004553d7
pop ecx
pop ecx
jmp 0x41ee15
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.00418902
mov dword [eax + 0x14], 2
lea eax, [esi + 4]
jmp 0x41efc5
xor eax, eax
mov word [esp + 0x102c0], ax
push 0x58
pop edi
push edi
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00456db0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x102cc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x80], eax
add esp, 0xc
lea eax, [esp + 0xb0]
xor edi, edi
cmp dword [ebp + 0x14], 4
mov dword [esp + 0x78], 0xffff
mov dword [esp + 0x84], eax
jb 0x41ef11
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
cmp eax, 0x1f
jg 0x41ef11
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
test eax, eax
js 0x41ef11
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, 0x80004
call fcn.00412c4e
test al, 0x10
je 0x41eeb4
add edi, 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
test al, 8
je 0x41eec9
or edi, 0x2000
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
test al, 4
je 0x41eede
or edi, 0x200
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
test al, 2
je 0x41eef3
or edi, 0x800
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c4e
test al, 1
je 0x41ef08
or edi, 0x1000
mov dword [esp + 0x8c], edi
jmp 0x41ef1c
mov dword [esp + 0x8c], 0x80004
cmp byte [ebp + 0x18], 0
lea eax, [esp + 0x58]
push eax
je 0x41ef95
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x41efad
push dword [esp + 0x74]
test edi, 0x200
je 0x41efa3
call fcn.00455031
pop ecx
push dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.00402172
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*2 + 2]
jmp 0x41ef85
push eax
call fcn.00455031
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [esp], 0x46e074
call fcn.00401a27
push dword [esp + 0x74]
call fcn.00401a27
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*2 + 2]
mov dword [esp + 0x74], eax
cmp word [eax], 0
jne 0x41ef5c
push dword [esp + 0x38]
jmp 0x41efa3
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x41efad
push dword [esp + 0x74]
mov edi, dword [ebp + 0x10]
call fcn.004132c2
jmp 0x41efce
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
add edi, ecx
lea eax, [edi + 4]
call fcn.00418902
mov dword [eax + 0x14], esi
lea eax, [edi + 4]
call fcn.00418902
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.00401a04
lea ecx, [esp + 0x38]
call fcn.00401a04
lea ecx, [esp + 0x48]
call fcn.00401a04
lea ecx, [esp + 0x10]
call fcn.00401a04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14