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

Disassembly:
push 0xffffffffffffffff
push 0x4d92f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
push ebx
mov dword [esp + 0x58], ecx
push esi
push edi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x300], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x300], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x300], 2
call sub.MFC42.DLL_CString::CString
push 0
push str.ASCII_Data_Files__.TXT_.TXTASCII_Data_Files__.ASC_.ASCAll_Files__._.
push 6
push 0
push str..TXT
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x318], 3
call fcn.004ce0c6
mov ebx, 4
lea ecx, [esp + 0xfc]
mov byte [esp + 0x300], bl
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 2
jne 0x4872b1
mov byte [esp + 0x300], 5
jmp 0x487ceb
lea eax, [esp + 0x14]
lea ecx, [esp + 0xfc]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x304], 6
call fcn.004ce0b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x300], bl
call fcn.004ce042
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x100]
call sub.MFC42.DLL_CFileDialog::GetFileName
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x304], 7
call fcn.004ce0b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x300], bl
call fcn.004ce042
lea edx, [esp + 0x14]
lea ecx, [esp + 0xfc]
push edx
call sub.MFC42.DLL_CFileDialog::GetFileTitle
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x304], 8
call fcn.004ce0b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x300], bl
call fcn.004ce042
lea eax, [esp + 0x14]
lea ecx, [esp + 0xfc]
push eax
call sub.MFC42.DLL_CFileDialog::GetFileExt
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x304], 9
call fcn.004ce0b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x300], bl
call fcn.004ce042
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4fe6f0
push ecx
call edi
add esp, 8
test eax, eax
je 0x4873bf
mov edx, dword [esp + 0x18]
push 0x4fe6ec
push edx
call edi
add esp, 8
test eax, eax
je 0x4873bf
mov byte [esp + 0x300], 0xa
jmp 0x487ceb
mov eax, dword [esp + 0x38]
push 0x4fd484
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x5c], esi
jne 0x4873e9
mov byte [esp + 0x300], 0xb
jmp 0x487ceb
push ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov byte [esp + 0x78], 0xa
mov cl, byte [0x4ffb68]
xor eax, eax
mov byte [esp + 0xac], cl
mov ecx, 0x14
lea edi, [esp + 0xad]
mov byte [esp + 0x304], 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x304], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x90]
mov byte [esp + 0x304], 0xe
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20], 0x49742400
mov dword [esp + 0x24], 0x49742400
mov dword [esp + 0x28], 0x49742400
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x308], 0x10
mov dword [esp + 0x90], 0xc9742400
call fcn.00417d40
mov dword [esp + 0x4c], 0x4b189680
mov dword [esp + 0x50], 0x4b189680
mov dword [esp + 0x54], 0x4b189680
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0x12
call fcn.004051b0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x80]
push edx
mov byte [esp + 0x308], 0x11
mov dword [esp + 0x1c], 0xcb189680
call fcn.00417d40
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x30c], 0x13
call fcn.004051b0
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x304], 0x11
mov eax, dword [ecx + 0x78]
lea ebp, [ecx + 0x78]
test eax, eax
je 0x48753e
mov ecx, dword [ebp + 4]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x487545
mov byte [esp + 0x13], 0
jmp 0x48755a
push 0
push ebx
push 0x4fe690
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
sete byte [esp + 0x13]
push esi
lea ecx, [esp + 0xb0]
push 0x50
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x487948
push 0
push str.BWHX_Company_software.
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jle 0x487948
push 0
push str.BWHX_Company_software.
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov al, byte [esp + 0x13]
test al, al
je 0x487888
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x84]
test eax, eax
jne 0x4875bd
xor edi, edi
jmp 0x4875cc
mov ecx, dword [esp + 0x64]
mov edi, dword [ecx + 0x88]
sub edi, eax
sar edi, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
add esi, edi
cmp esi, 1
jb 0x487651
lea ebx, [esi + esi*2]
shl ebx, 2
mov dword [esp + 0x40], ebx
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x304], 0x14
je 0x487623
push fcn.004011f0
push fcn.00426a10
lea edi, [eax + 4]
push esi
push 0xc
push edi
mov dword [eax], esi
call fcn.004ce784
jmp 0x487625
xor edi, edi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
cmp eax, ecx
mov byte [esp + 0x304], 0x11
jne 0x487801
test ecx, ecx
je 0x487646
push 3
call fcn.00470100
add ebx, edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], ebx
mov esi, dword [esp + 0x60]
push esi
lea eax, [esp + 0xb0]
push 0x50
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x487a30
mov bl, 0x19
lea ecx, [esp + 0xac]
mov byte [esp + 0xfc], 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004ce04e
push 0x4fe670
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::FindOneOf
cmp eax, 0xffffffff
jg 0x487a14
push str._1234567890.
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::FindOneOf
mov esi, eax
lea ecx, [esp + 0x14]
push esi
push 0x20
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
test edi, edi
jg 0x4876d3
push esi
push 9
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
push edi
lea edx, [esp + 0x44]
push 0
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x308], 0x17
call fcn.004ce0b4
lea ecx, [esp + 0x40]
mov byte [esp + 0x304], 0x11
call fcn.004ce042
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x70]
add esp, 4
lea ecx, [esp + 0x14]
push 0x20
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
test esi, esi
jg 0x487737
push 9
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
mov ecx, esi
lea edx, [esp + 0x18]
sub ecx, edi
push ecx
push edi
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x308], 0x18
call fcn.004ce0b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x304], 0x11
call fcn.004ce042
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
mov ecx, dword [esp + 0x18]
add esp, 4
fstp dword [esp + 0x70]
mov eax, dword [ecx - 8]
lea edx, [esp + 0x68]
sub eax, esi
lea ecx, [esp + 0x14]
dec eax
push eax
push esi
push edx
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x308], bl
call fcn.004ce0b4
lea ecx, [esp + 0x68]
mov byte [esp + 0x304], 0x11
call fcn.004ce042
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x78]
fld dword [esp + 0x24]
fcomp dword [esp + 0x70]
add esp, 4
fnstsw ax
test ah, 1
jne 0x4877e5
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x24]
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x487982
fld dword [esp + 0x24]
jmp 0x487986
sub eax, ecx
mov dword [esp + 0x68], ecx
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov ebx, edi
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x487825
mov dword [esp + 0x7c], esi
jmp 0x48782b
mov dword [esp + 0x7c], edx
mov esi, edx
test esi, esi
jbe 0x487860
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x68]
lea edx, [esp + 0x80]
push esi
push edx
mov ecx, ebx
call fcn.004051b0
mov eax, dword [esp + 0x18]
add ebx, 0xc
add esi, 0xc
dec eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x18], eax
jne 0x487833
mov esi, dword [esp + 0x7c]
mov ecx, dword [ebp]
test ecx, ecx
je 0x48786e
push 3
call fcn.00470100
mov edx, dword [esp + 0x40]
lea eax, [esi + esi*2]
add edx, edi
mov dword [ebp], edi
lea ecx, [edi + eax*4]
mov dword [ebp + 8], edx
mov dword [ebp + 4], ecx
jmp 0x487651
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x304], 0x15
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
cmp esi, 1
jb 0x48793b
mov ecx, dword [ebp]
xor ebx, ebx
cmp ecx, ebx
je 0x4878d6
push 3
call fcn.00470100
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
lea edi, [esi + esi*2]
shl edi, 2
lea ecx, [edi + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x304], 0x16
je 0x487914
push fcn.004011f0
push fcn.00426a10
lea ebx, [eax + 4]
push esi
push 0xc
push ebx
mov dword [eax], esi
call fcn.004ce784
mov eax, ebx
jmp 0x487916
xor eax, eax
lea edx, [esp + 0x4c]
mov byte [esp + 0x304], 0x15
push edx
push esi
push eax
mov dword [ebp], eax
call fcn.00474f80
mov eax, dword [ebp]
add esp, 0xc
add edi, eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], edi
mov byte [esp + 0x304], 0x11
jmp 0x487651
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
jne 0x487655
mov ecx, dword [ebp]
cmp ecx, edi
je 0x487655
push 3
call fcn.00470100
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
jmp 0x487655
fld dword [esp + 0x70]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp dword [esp + 0x74]
fnstsw ax
test ah, 1
je 0x48799f
fld dword [esp + 0x28]
jmp 0x4879a3
fld dword [esp + 0x74]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 0x41
jne 0x4879bc
fld dword [esp + 0x2c]
jmp 0x4879c0
fld dword [esp + 0x6c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4879d9
fld dword [esp + 0x30]
jmp 0x4879dd
fld dword [esp + 0x70]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fcomp dword [esp + 0x74]
fnstsw ax
test ah, 0x41
jne 0x4879f6
fld dword [esp + 0x34]
jmp 0x4879fa
fld dword [esp + 0x74]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x6c]
fstp dword [esp + 0x34]
push edx
push 1
push eax
mov ecx, ebp
call fcn.00472f60
mov esi, dword [esp + 0x60]
push esi
lea eax, [esp + 0xb0]
push 0x50
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x487673
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x17]
add esp, 4
test al, al
pop ebp
je 0x487b8f
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea esi, [ecx + 0xac]
lea ecx, [esp + 0x48]
mov byte [esp + 0x300], 0x1a
call fcn.00426a10
lea edi, [esi + 0xc]
lea edx, [esp + 0x7c]
push edi
mov bl, 0x1b
push esi
push edx
mov byte [esp + 0x30c], bl
call fcn.004059c0
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x308], 0x1c
call fcn.004051b0
push edi
lea ecx, [esp + 0x94]
push esi
push ecx
mov byte [esp + 0x30c], bl
call fcn.0041a670
add esp, 0xc
lea edx, [esp + 0x7c]
push eax
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x308], 0x1d
call fcn.004051b0
fld dword [esp + 0x1c]
fcomp dword [esp + 0x48]
fnstsw ax
test ah, 1
jne 0x487af6
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x20]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 1
je 0x487b0b
fld dword [esp + 0x20]
jmp 0x487b0f
fld dword [esp + 0x4c]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x487b28
fld dword [esp + 0x24]
jmp 0x487b2c
fld dword [esp + 0x50]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x487b45
fld dword [esp + 0x28]
jmp 0x487b49
fld dword [esp + 0x3c]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x487b62
fld dword [esp + 0x2c]
jmp 0x487b66
fld dword [esp + 0x40]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x487b7f
fld dword [esp + 0x30]
jmp 0x487b83
fld dword [esp + 0x44]
fstp dword [esp + 0x30]
mov byte [esp + 0x300], 0x11
lea ecx, [esp + 0x28]
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004051f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x7c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x308], 0x1e
call fcn.00405230
lea edx, [esp + 0x3c]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x94]
mov bl, 0x1f
push eax
push ecx
mov byte [esp + 0x30c], bl
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x40000000
call fcn.0041a080
add esp, 0xc
lea edx, [esp + 0x9c]
push eax
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x308], 0x20
call fcn.004051b0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0xa0]
push ecx
push edx
mov byte [esp + 0x30c], bl
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x40000000
call fcn.0041a080
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x308], 0x21
call fcn.004051b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x300], bl
call fcn.00426bc0
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x9c]
push edx
lea esi, [ecx + 0xac]
push eax
mov ecx, esi
mov byte [esp + 0x308], 0x11
call fcn.004051b0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esi + 0xc]
call fcn.004051b0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x8c]
mov byte [esp + 0x300], 0xe
call fcn.004ce042
lea ecx, [esp + 0x34]
mov byte [esp + 0x300], 0xd
call fcn.004ce042
mov byte [esp + 0x300], 0xc
lea ecx, [esp + 0x10]
call fcn.004ce042
mov byte [esp + 0x300], 0x22
lea ecx, [esp + 0x1ac]
call fcn.004ce042
lea ecx, [esp + 0xfc]
mov byte [esp + 0x300], 3
call fcn.004ce09c
lea ecx, [esp + 0x18]
mov byte [esp + 0x300], 2
call fcn.004ce042
lea ecx, [esp + 0x58]
mov byte [esp + 0x300], 1
call fcn.004ce042
lea ecx, [esp + 0x54]
mov byte [esp + 0x300], 0
call fcn.004ce042
lea ecx, [esp + 0x38]
mov dword [esp + 0x300], 0xffffffff
call fcn.004ce042
mov ecx, dword [esp + 0x2f8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f8
ret