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

Disassembly:
push 0xffffffffffffffff
push 0x4bfc7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x2c]
push esi
xor esi, esi
test eax, eax
push edi
mov dword [esp + 0x24], ebp
je 0x46a598
mov esi, dword [eax + 0x11c]
test esi, esi
jne 0x46a5be
mov ecx, dword [0x525df8]
mov eax, dword [ecx]
call dword [eax + 0xcc]
test eax, eax
je 0x46a5be
mov ecx, dword [0x525df8]
mov edx, dword [ecx]
call dword [edx + 0xcc]
mov esi, dword [eax + 0x11c]
mov byte [0x515cf8], 0
mov eax, dword [ebp + 0x1ac]
test al, 0x10
mov byte [esp + 0xb8], 0
mov dword [esp + 0x14], 4
je 0x46a5e7
mov dword [esp + 0x14], 0x1804
mov cl, byte [ebp + 0x1d4]
test cl, cl
je 0x46a5f9
or dword [esp + 0x14], 0x880020
test al, 0x20
je 0x46a605
or dword [esp + 0x14], 0x80200
test al, 0x40
jne 0x46a60e
or dword [esp + 0x14], 8
test al, 4
je 0x46a617
or dword [esp + 0x14], 2
mov edx, dword [0x50fcb0]
xor eax, eax
mov ecx, 0x16
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1a8]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x40], 0x4c
mov dword [esp + 0x44], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0x406
mov dword [esp + 0x34], edx
mov eax, dword [ebp + 0x1b0]
mov edi, dword [eax - 8]
lea ebx, [ebp + 0x1b0]
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4cc], 0
mov dword [esp + 0x3c], ebx
call fcn.00472150
xor esi, esi
test edi, edi
jbe 0x46a6e7
mov ecx, ebx
call fcn.00472030
mov ecx, dword [ebx]
mov al, byte [esi + ecx]
cmp al, 0x2f
mov byte [esp + 0x28], al
je 0x46a69f
cmp al, 0x5c
je 0x46a6a4
jmp 0x46a6ce
mov byte [esp + 0x28], 0x5c
lea ebp, [edi - 1]
cmp esi, ebp
jae 0x46a6ce
jmp 0x46a6b0
mov ecx, ebx
call fcn.00472030
mov edx, dword [ebx]
mov al, byte [edx + esi + 1]
cmp al, 0x5c
je 0x46a6c5
cmp al, 0x2f
jne 0x46a6ce
test esi, esi
jbe 0x46a6ce
inc esi
cmp esi, ebp
jb 0x46a6b0
mov eax, dword [esp + 0x28]
push eax
push 1
lea ecx, [esp + 0x3c]
call fcn.00472d10
inc esi
cmp esi, edi
jb 0x46a685
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
push 0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], 0x46a0d0
call fcn.00471d40
push 0
lea ecx, [esp + 0xac]
mov byte [esp + 0x4cc], 1
call fcn.00471d40
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [ebp + 0x1bc]
push edx
mov byte [esp + 0x4d4], 2
call fcn.0047cb20
mov edi, eax
mov eax, dword [0x50fcb0]
add esp, 0xc
mov dword [esp + 0x18], eax
xor esi, esi
test edi, edi
mov byte [esp + 0x4c8], 3
jbe 0x46a7cf
jmp 0x46a770
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00472de0
push 1
push 0x4e3388
push 1
lea ecx, [esp + 0x24]
call fcn.00472de0
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00472de0
push 1
push 0x4e3388
push 1
lea ecx, [esp + 0x24]
call fcn.00472de0
inc esi
cmp esi, edi
jb 0x46a770
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
xor esi, esi
test ecx, ecx
jbe 0x46a7fb
cmp byte [eax + esi], 0x7c
jne 0x46a7f3
lea ecx, [esp + 0x18]
call fcn.00472030
mov edx, dword [esp + 0x18]
mov byte [edx + esi], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jb 0x46a7d8
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c0]
inc eax
mov dword [esp + 0x58], eax
lea eax, [ebp + 0x1b8]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
push 0xfffd
push eax
push 0x515cf8
call dword [sym.imp.MSVCR71.dll_strncpy]
mov ecx, dword [0x50fcb0]
add esp, 0xc
mov byte [0x525cf5], 0
mov dword [esp + 0x5c], 0x515cf8
mov dword [esp + 0x60], 0xfffe
mov dword [esp + 0x2c], ecx
test byte [ebp + 0x1ac], 2
mov ebx, dword [sym.imp.MSVCR71.dll_free]
mov byte [esp + 0x4c8], 4
je 0x46a9a3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x46a895
mov edi, eax
test edx, edx
je 0x46a88c
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46a881
sub eax, esi
jmp 0x46a88e
xor eax, eax
dec edi
lea edx, [edx + eax + 1]
jne 0x46a878
test edx, edx
jne 0x46a89e
mov edx, 0x4c8731
mov eax, dword [0x4e4f74]
push eax
push 0
push edx
lea ecx, [esp + 0x2c]
call fcn.00472c90
mov ecx, dword [0x4e4f74]
push ecx
push 0
push 0x4e3384
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d4], 5
call fcn.00472c90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x4d4], 6
call fcn.0045d370
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4cc], 7
call fcn.004725c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46a91a
dec ecx
mov dword [eax], ecx
jne 0x46a91a
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46a934
dec ecx
mov dword [eax], ecx
jne 0x46a934
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x4c8], 4
je 0x46a956
dec ecx
mov dword [eax], ecx
jne 0x46a956
push eax
call ebx
add esp, 4
push 0
push 0x4e3380
lea ecx, [esp + 0x34]
call fcn.00473670
test al, al
je 0x46a9a3
mov edx, dword [0x4e4f74]
push edx
push 2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.004735b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46a99b
dec ecx
mov dword [eax], ecx
jne 0x46a99b
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0047ca20
add esp, 4
mov esi, dword [esp + 0x24]
test byte [esi + 0x1ac], 2
mov ebp, dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
mov ebx, dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov byte [esp + 0x4c8], 8
je 0x46a9da
lea eax, [esp + 0x40]
push eax
call ebx
jmp 0x46a9e1
lea ecx, [esp + 0x40]
push ecx
call ebp
test eax, eax
jne 0x46aa76
mov edi, dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
call edi
cmp eax, 1
mov byte [esp + 0x13], 0
jne 0x46ae68
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov esi, eax
sub eax, 0xc
mov dword [esp + 0x40], eax
test byte [edx + 0x1ac], 2
je 0x46aa22
lea eax, [esp + 0x40]
push eax
call ebx
jmp 0x46aa29
lea ecx, [esp + 0x40]
push ecx
call ebp
test eax, eax
jne 0x46aa72
call edi
cmp eax, 1
mov byte [esp + 0x13], 0
jne 0x46ae68
mov edx, dword [esp + 0x24]
mov al, byte [edx + 0x1ac]
add esi, 0xc
test al, 2
mov dword [esp + 0x40], esi
je 0x46aa5b
lea eax, [esp + 0x40]
push eax
call ebx
jmp 0x46aa62
lea ecx, [esp + 0x40]
push ecx
call ebp
test eax, eax
jne 0x46aa72
call edi
mov byte [esp + 0x13], 0
jmp 0x46ae68
mov esi, dword [esp + 0x24]
test byte [esp + 0x14], 8
mov byte [esp + 0x13], 1
je 0x46aa8f
lea edx, [esp + 0x3c]
push edx
call fcn.0047c840
add esp, 4
lea edi, [esi + 0x1c4]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.00471e60
test byte [esi + 0x1ac], 0x20
je 0x46ac49
movzx eax, word [esp + 0x78]
mov cl, byte [eax + 0x515cf7]
test cl, cl
jne 0x46ac49
mov ebx, dword [esp + 0x38]
push 0x515cf8
mov ecx, ebx
call fcn.00472da0
movzx esi, word [esp + 0x78]
mov ebp, dword [esp + 0x28]
lea ecx, [esi + 0x515cf8]
push ecx
mov ecx, ebp
call fcn.00472da0
push 1
push ebp
mov ecx, edi
call fcn.00472b50
mov edx, dword [ebp]
mov eax, dword [edx - 8]
lea edi, [esi + eax + 1]
mov al, byte [edi + 0x515cf8]
test al, al
lea esi, [edi + 0x515cf8]
je 0x46ab9e
mov bl, 9
test esi, esi
mov eax, esi
jne 0x46ab1c
mov eax, 0x4c8731
mov ecx, dword [0x4e4f74]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00472c90
mov ecx, dword [esp + 0x1c]
push 1
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x4d0], bl
call fcn.00472b50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x4c8], 8
je 0x46ab6c
dec ecx
mov dword [eax], ecx
jne 0x46ab6c
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
test esi, esi
je 0x46ab80
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ab75
sub eax, edx
jmp 0x46ab82
xor eax, eax
lea edi, [edi + eax + 1]
mov al, byte [edi + 0x515cf8]
test al, al
lea esi, [edi + 0x515cf8]
jne 0x46ab11
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x46abb2
mov eax, dword [0x50fcb0]
mov dword [esp + 0x14], eax
jmp 0x46abc2
mov dword [esp + 0x14], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x46abc2
inc ecx
mov dword [eax - 0xc], ecx
mov ecx, dword [ebx]
mov esi, dword [ecx - 8]
mov ecx, ebx
mov byte [esp + 0x4c8], 0xa
call fcn.00472030
mov edx, dword [ebx]
cmp byte [edx + esi - 1], 0x5c
je 0x46abec
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00472d10
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004732f0
add esp, 0xc
mov esi, dword [esp + 0x24]
lea ecx, [esi + 0x1b4]
push eax
mov byte [esp + 0x4cc], 0xb
call fcn.004725c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ac35
dec ecx
mov dword [eax], ecx
jne 0x46ac35
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
dec edx
mov dword [esi + 0x1c0], edx
jmp 0x46ae4e
mov eax, dword [esp + 0x58]
lea ecx, [eax - 1]
mov dword [esi + 0x1c0], ecx
mov cx, word [esp + 0x7a]
test cx, cx
je 0x46ac71
movzx edx, cx
mov cl, byte [edx + 0x515cf8]
test cl, cl
jne 0x46adb7
mov edx, dword [esp + 0x18]
lea eax, [eax + eax - 1]
test eax, eax
jle 0x46aca4
mov edi, eax
nop
test edx, edx
je 0x46ac9b
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ac90
sub eax, esi
jmp 0x46ac9d
xor eax, eax
dec edi
lea edx, [edx + eax + 1]
jne 0x46ac80
test edx, edx
jne 0x46acad
mov edx, 0x4c8731
mov eax, dword [0x4e4f74]
push eax
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.00472c90
mov ecx, dword [0x4e4f74]
push ecx
push 0
push 0x515cf8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 0xc
call fcn.00472c90
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x4d4], 0xd
call fcn.0045d370
add esp, 0xc
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x4cc], 0xe
call fcn.004725c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ad33
dec ecx
mov dword [eax], ecx
jne 0x46ad33
mov edi, dword [sym.imp.MSVCR71.dll_free]
push eax
call edi
add esp, 4
jmp 0x46ad39
mov edi, dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ad53
dec ecx
mov dword [eax], ecx
jne 0x46ad53
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x4c8], 8
je 0x46ad75
dec ecx
mov dword [eax], ecx
jne 0x46ad75
push eax
call edi
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp ecx, 0xfffd
jb 0x46ad87
mov ecx, 0xfffd
push ecx
push eax
push 0x515cf8
call dword [sym.imp.MSVCR71.dll_strncpy]
mov edx, dword [esi]
mov eax, dword [edx - 8]
add esp, 0xc
cmp eax, 0xfffd
jb 0x46ada8
mov eax, 0xfffd
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov byte [eax + 0x515cf8], 0
push 0x515cf8
lea ecx, [esi + 0x1b4]
call fcn.00472da0
push 0x515cf8
call fcn.0047cfa0
mov esi, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, esi
call fcn.00472da0
push 1
push esi
mov ecx, edi
call fcn.00472b50
mov eax, dword [0x4e4f74]
push eax
push 0
push 0x515cf8
lea ecx, [esp + 0x28]
call fcn.00472c90
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x4d0], 0xf
call fcn.0047c740
add esp, 8
mov ecx, dword [esp + 0x38]
push eax
mov byte [esp + 0x4cc], 0x10
call fcn.004725c0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ae4a
dec ecx
mov dword [eax], ecx
jne 0x46ae4a
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ae68
dec ecx
mov dword [eax], ecx
jne 0x46ae68
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov al, byte [esp + 0x13]
mov edi, dword [sym.imp.MSVCR71.dll_free]
neg al
sbb eax, eax
add eax, 0x13ed
mov esi, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46ae97
dec ecx
mov dword [eax], ecx
jne 0x46ae97
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46aeb1
dec ecx
mov dword [eax], ecx
jne 0x46aeb1
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46aecb
dec ecx
mov dword [eax], ecx
jne 0x46aecb
push eax
call edi
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x4c8], 1
call fcn.00471eb0
lea ecx, [esp + 0x98]
mov byte [esp + 0x4c8], 0
call fcn.00471eb0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x46af0d
dec ecx
mov dword [eax], ecx
jne 0x46af0d
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x4c0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4bc
ret