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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3e4c
call fcn.00563290
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [esp + 0x28], 0x8000
jne 0x40d18b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
call fcn.004c2e90
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40d1a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5a1a04]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0051d120
test eax, eax
jne 0x40d1d0
push ebx
call fcn.004c2eb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x6b8]
push ecx
mov ecx, dword [0x5a223c]
call fcn.005503a0
add esi, 0x2c
mov byte [ebx], 0
mov dword [esp + 0xc], esi
cmp byte [esi], 0
je 0x40d9c5
jmp 0x40d1fc
mov esi, dword [esp + 0xc]
push 0x5819e8
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40d9a2
cmp edi, esi
je 0x40d237
sub eax, esi
push eax
push esi
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x20]
add esp, 0xc
add ebx, eax
mov dword [esp + 0xc], edi
mov esi, edi
mov ecx, 5
mov edi, str.BID
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d2ad
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
lea eax, [esp + 0x19c]
push 0x20
push eax
call fcn.00429bd0
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 5
mov dword [esp + 0xc], eax
jmp 0x40d988
mov edx, dword [esp + 0xc]
mov ecx, 5
mov edi, str.ASK
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d329
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
lea ecx, [esp + 0x19c]
push 0x20
push ecx
call fcn.00429bd0
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 5
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 3
mov edi, 0x5819d0
mov esi, edx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x40d3a8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ecx
push edx
push eax
lea ecx, [esp + 0x19c]
push 0x20
push ecx
call fcn.00429bd0
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 6
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 5
mov edi, str.LOW
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d3d3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
push ecx
push edx
jmp 0x40d2d1
mov ecx, 2
mov edi, str.SYMBOL
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40d41c
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
add edx, 8
jmp 0x40d984
mov ecx, 3
mov edi, 0x5819b4
mov esi, edx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x40d4ca
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
inc ecx
add edx, 0x76c
push ecx
push edx
push 0x581994
lea eax, [esp + 0x1ac]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x1b4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 6
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 7
mov edi, 0x58198c
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d556
lea ecx, [esp + 0x3b0]
push ecx
mov ecx, 0x593d48
call fcn.0042f040
mov edx, dword [esp + 0x3b8]
lea eax, [esp + 0x190]
push edx
push 0x581330
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x1a0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 7
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 9
mov edi, str.BALANCE
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d5d8
mov ecx, dword [esp + 0x824]
mov edx, dword [esp + 0x820]
push ecx
push edx
push str._.2lf
lea eax, [esp + 0x19c]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 9
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 2
mov edi, str.PROFIT
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40d5fb
mov ecx, dword [esp + 0x84c]
mov edx, dword [esp + 0x848]
push ecx
jmp 0x40d61c
mov ecx, 2
mov edi, str.MARGIN
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40d67d
mov ecx, dword [esp + 0x83c]
mov edx, dword [esp + 0x838]
push ecx
push edx
push str._.2lf
lea eax, [esp + 0x19c]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
add ebx, ecx
add eax, 8
mov dword [esp + 0xc], eax
jmp 0x40d988
mov ecx, 2
mov edi, str.TRADES
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40d97e
mov ecx, dword [0x5a223c]
call fcn.00550e80
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40d971
inc eax
shl eax, 8
push eax
call fcn.004c2e90
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x40d971
push str.Ticket_t_tTime_t_t_tType_tLots_tSymbol_tOpenPrice_tSL_tTP_tPrice_tComm_tSwap_tProfit_t_r_n
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
add ecx, esi
xor esi, esi
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
jle 0x40d8ad
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [0x5a223c]
push esi
call fcn.00550f30
test eax, eax
je 0x40d89c
lea edx, [esp + 0xd0]
push edx
call dword [sym.imp.MSVCRT.dll_gmtime]
mov edi, dword [esp + 0x1c]
mov esi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov edx, dword [esp + 0x124]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x134]
not ecx
dec ecx
push eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x140]
push edx
mov edx, dword [esp + 0x140]
push eax
push ecx
push edx
lea eax, [esp + 0x234]
push 0x20
push eax
call fcn.00429bd0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x118]
add esp, 0x14
push eax
mov eax, dword [esp + 0x104]
push ecx
push edx
push eax
lea ecx, [esp + 0x1f8]
push 0x20
push ecx
call fcn.00429bd0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x110]
add esp, 0x14
push eax
mov eax, dword [esp + 0x104]
push edx
push eax
push ecx
lea edx, [esp + 0x1dc]
push 0x20
push edx
call fcn.00429bd0
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x60]
push eax
push ecx
push edx
lea eax, [esp + 0x1c0]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x104]
add esp, 0x14
lea ecx, [esp + 0xdc]
lea edx, [esp + 0x3b4]
fmul qword [0x565ad0]
push eax
push ecx
push 0x20
push edx
sub esp, 8
fstp qword [esp]
call fcn.0042a0c0
add esp, 0x10
push eax
mov eax, dword [esp + 0xf8]
push eax
call fcn.0042abe0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add esp, 4
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x60]
inc ecx
push eax
mov eax, dword [esp + 0xf0]
add edx, 0x76c
push ecx
push edx
push eax
push str._d_t_t_04d._02d._02d__02d:_02d_t_t_s_t_s_t_s_t_s_t_s_t_s_t_s_t_.2lf_t_.2lf_t_.2lf_t_r_n
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x54
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x20]
not ecx
dec ecx
sub ecx, edx
add esi, ecx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x40d6f8
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov esi, ebx
xor eax, eax
sub esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
mov edi, ecx
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov dword [esp + 0x20], edi
lea edx, [edi + 0x200]
cmp ecx, edx
jg 0x40d937
lea eax, [edi + esi + 0x406]
push eax
call fcn.004c2e90
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40d937
test esi, esi
jle 0x40d915
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, edx
mov eax, dword [esp + 0x10]
push eax
call fcn.004c2eb0
mov ebx, dword [esp + 0x20]
lea ecx, [edi + esi + 0x400]
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ecx
add ebx, esi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
call fcn.004c2eb0
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 8
mov dword [esp + 0xc], eax
mov edx, eax
mov al, byte [edx]
mov byte [ebx], al
inc ebx
inc edx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
cmp byte [ecx], 0
jne 0x40d1f8
mov ebx, dword [esp + 0x10]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret