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

Disassembly:
push 0xffffffffffffffff
push 0x5c84a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov dx, word [0x635254]
mov eax, dword [str.FARE__CNY]
mov ebp, ecx
mov word [esp + 0x64], dx
mov ecx, dword [0x635250]
mov edx, dword [0x6351a8]
mov dword [esp + 0x60], ecx
mov ecx, dword [str.EQUIV__CNY]
mov dword [esp + 0x5c], eax
mov al, byte [0x635256]
mov dword [esp + 0x38], ecx
mov cl, byte [0x6351ae]
mov dword [esp + 0x3c], edx
mov edx, dword [str.TAX___CNY]
mov byte [esp + 0x66], al
mov ax, word [0x6351ac]
mov byte [esp + 0x42], cl
mov cx, word [0x635248]
mov dword [esp + 0x50], edx
mov dl, byte [0x63524a]
mov word [esp + 0x40], ax
mov eax, dword [0x635244]
mov word [esp + 0x58], cx
mov ecx, dword [0x6378f0]
mov byte [esp + 0x5a], dl
mov edx, dword [0x6378f4]
mov dword [esp + 0x54], eax
mov eax, dword [str.TAX____EXEMPT]
mov dword [esp + 0x78], ecx
mov cl, byte [0x6378fa]
mov dword [esp + 0x7c], edx
mov edx, dword [str.TAX_____EXEMPT]
mov dword [esp + 0x74], eax
mov ax, word [0x6378f8]
mov byte [esp + 0x82], cl
mov ecx, dword [0x6378e4]
mov dword [esp + 0x84], edx
mov edx, dword [0x6378e8]
mov word [esp + 0x80], ax
mov eax, dword [0x6378e0]
mov dword [esp + 0x8c], ecx
mov ecx, dword [0x635238]
mov dword [esp + 0x90], edx
mov dx, word [0x63523c]
mov dword [esp + 0x88], eax
mov eax, dword [str.TOTAL_CNY]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
mov dword [esp + 0x48], ecx
mov ecx, dword [str.IT_FARE]
mov word [esp + 0x4c], dx
mov edx, dword [0x63522c]
mov dword [esp + 0x44], eax
mov al, byte [0x63523e]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x4070]
lea ecx, [esp + 0x68]
mov byte [esp + 0x4e], al
mov ax, word [0x635230]
push ecx
push edx
mov word [esp + 0x78], ax
mov dword [esp + 0x28], 0xbf800000
call ebx
test eax, eax
mov eax, dword [ebp + 0x4070]
push str.COMMISSION_STAND
push eax
setne byte [esp + 0x2b]
call ebx
xor esi, esi
add esp, 0x10
cmp eax, esi
je 0x587dc0
mov dword [esp + 0x20], esi
jmp 0x587e45
mov ecx, dword [ebp + 0x4070]
push str.COMMISSION
push ecx
call ebx
mov edx, eax
add esp, 8
cmp edx, esi
je 0x587df8
mov edi, str.COMMISSION
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [esp + 0x24]
add esp, 4
jmp 0x587e45
mov al, byte [esp + 0x1b]
test al, al
je 0x587e45
push str.MS_PG
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x407c]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0xf4], esi
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x587e31
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x4070]
xor edi, edi
lea ecx, [ebp + 0x40c4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x94]
push eax
push ecx
call fcn.0055fa50
add esp, 8
mov dword [esp + 0x24], eax
lea edx, [esp + 0x94]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.00588470
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf0], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x587ed3
mov edx, dword [ebp + 0x40c4]
lea esi, [ebp + 0x40c4]
mov eax, dword [edx - 8]
test eax, eax
je 0x587ec7
push 0x2c
mov ecx, esi
call fcn.0059b7b2
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0059ba4c
test edi, edi
jne 0x587f4e
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x94]
push ecx
push edx
call ebx
mov edx, eax
add esp, 8
test edx, edx
jne 0x587f0b
lea eax, [esp + 0x38]
lea ecx, [esp + 0x94]
push eax
push ecx
call ebx
mov edx, eax
add esp, 8
test edx, edx
je 0x588046
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.004ec330
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::CString
jmp 0x588046
jle 0x588046
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x588020
lea eax, [esp + 0x50]
lea ecx, [esp + 0x94]
push eax
push ecx
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x587faf
lea edx, [esp + 0x74]
lea eax, [esp + 0x94]
push edx
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x587faf
lea ecx, [esp + 0x84]
lea edx, [esp + 0x94]
push ecx
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x588046
xor ebx, ebx
push str._CNY
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x588011
mov edi, str._CNY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call fcn.004ec330
add esp, 4
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x30]
add esp, 4
add edx, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edx
call sub.MFC42.DLL_CString::CString
inc ebx
cmp ebx, 8
jl 0x587fb1
cmp byte [esp + 0x1b], 1
je 0x588085
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
jmp 0x588046
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x588046
lea ecx, [esp + 0x44]
lea edx, [esp + 0x94]
push ecx
push edx
call ebx
mov edx, eax
add esp, 8
test edx, edx
jne 0x5880a3
add esi, edi
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x30]
or edx, 0xffffffff
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
cmp ecx, eax
jle 0x58819a
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xf0], edx
add ecx, eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x28]
jmp 0x587e68
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x34], eax
jmp 0x5881a1
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.004ec330
add esp, 4
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x10]
mov byte [esp + 0xf0], 2
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, dword [esp + 0x2c]
mov edi, eax
mov esi, edi
add esp, 4
sub esi, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], esi
lea eax, [esi + ebx]
cmp edi, eax
je 0x588173
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push edi
push esi
push ebx
lea ecx, [esp + 0x2c]
push 0x6351fc
push ecx
mov byte [esp + 0x104], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
add esp, 4
lea ecx, [esp + 0x20]
mov dword [ebp + 0x28], eax
mov byte [esp + 0xf0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xf0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x588450
lea ecx, [esp + 0x10]
mov byte [esp + 0xf0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x5881ae
mov dword [esp + 0xf0], edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x58820c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push 0x637890
push ecx
mov dword [esp + 0xfc], 4
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [ebp + 0x28], eax
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
xor edi, edi
mov dword [esp + 0xf0], 5
cmp esi, edi
je 0x588250
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
mov dword [esi], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], 0xbf800000
mov dword [esp + 0x14], esi
jmp 0x588256
mov dword [esp + 0x14], edi
mov esi, edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xc], eax
lea eax, [ebp + 0x40c4]
mov dword [esi + 0x10], ecx
push eax
lea ecx, [esi + 4]
mov dword [esp + 0xf4], 0xffffffff
mov dword [esi + 8], ebx
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x20]
mov dword [esi + 0x18], edx
mov eax, dword [ebp + 0x40a4]
mov ebx, eax
mov dword [esp + 0x1c], ebx
inc ebx
test ebx, ebx
jne 0x5882c5
mov eax, dword [ebp + 0x40a0]
test eax, eax
je 0x5882b2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x40a0], ebx
xor eax, eax
mov dword [ebp + 0x40a8], eax
mov dword [ebp + 0x40a4], eax
jmp 0x5883df
mov edx, dword [ebp + 0x40a0]
test edx, edx
jne 0x58830c
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x40a0], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x40a8], ebx
mov dword [ebp + 0x40a4], ebx
jmp 0x5883df
mov edi, dword [ebp + 0x40a8]
cmp ebx, edi
jg 0x588330
cmp ebx, eax
jle 0x588325
mov ecx, ebx
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 0x40a4], ebx
jmp 0x5883df
mov ecx, dword [ebp + 0x40ac]
test ecx, ecx
jne 0x58835e
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x588351
mov ecx, 4
jmp 0x58835e
cmp ecx, 0x400
jle 0x58835e
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x58836d
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x40a4]
mov esi, dword [ebp + 0x40a0]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x40a4]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x40a0]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebp + 0x40a0], eax
mov dword [ebp + 0x40a4], ebx
mov dword [ebp + 0x40a8], ecx
mov edx, dword [ebp + 0x40a0]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x58844e
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push 0x637890
push edx
mov dword [esp + 0xfc], 6
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x28], eax
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe4
ret