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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x369]
mov byte [esp + 0x368], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor esi, esi
mov ecx, 0x37
xor eax, eax
lea edi, [esp + 0xcc]
mov dword [esp + 0xc8], esi
mov dword [esp + 0x30], esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x2c4]
mov dword [esp + 0x34], esi
cmp eax, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 0xffffffff
jne 0x45bae9
mov ecx, dword [ebx + 0x1384]
lea eax, [ebx + 0xc]
push eax
push str.Custom_indicator__s:_OrderSend_function_cannot_be_called_from_a_custom_indicator
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfd7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
cmp eax, 7
jl 0x45caa9
cmp eax, 0xb
jg 0x45caa9
mov ecx, dword [ebx + 0x1388]
cmp ecx, esi
je 0x45cad5
mov eax, dword [ebx + 0x548]
mov edx, dword [eax]
cmp edx, 0xd
jne 0x45ca79
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x45ca79
mov edi, eax
cmp edi, esi
mov dword [esp + 0x2c], edi
jne 0x45bb3c
lea edi, [ebx + 0x294]
mov dword [esp + 0x2c], edi
mov edx, dword [ecx]
lea eax, [ebx + 0xac0]
push eax
push edi
call dword [edx + 0x18]
test eax, eax
jne 0x45bb81
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0x8c]
push edi
push ecx
push str._s:_unknown_symbol_name__s_for_OrderSend_function
push 3
push edx
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0x100a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x548]
cmp dword [eax + 0x10], 0xa
je 0x45bbc0
mov ecx, dword [ebx + 0x1384]
lea eax, [ebx + 0x8c]
push eax
push str._s:_trade_cmd_for_OrderSend_function_must_be_an_integer
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfdf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x18]
cmp ecx, esi
mov dword [esp + 0x24], ecx
jl 0x45ca45
cmp ecx, 5
jg 0x45ca45
push str.OrderSend
add eax, 0x20
push 2
push eax
mov ecx, ebx
call fcn.0044aac0
fst qword [esp + 0x10]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
je 0x45bc09
lea edx, [ebx + 0x8c]
push edx
push str._s:_invalid_lots_amount_for_OrderSend_function
jmp 0x45bc6f
mov ecx, dword [ebx + 0x548]
push str.OrderSend
add ecx, 0x30
push 3
push ecx
mov ecx, ebx
call fcn.0044aac0
fst qword [esp + 0x38]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45bc43
lea edx, [ebx + 0x8c]
push edx
push str._s:_invalid_price_for_OrderSend_function
jmp 0x45bd28
mov ecx, dword [ebx + 0x548]
push str.OrderSend
add ecx, 0x40
push 4
push ecx
mov ecx, ebx
call fcn.0044ab40
cmp eax, esi
mov dword [esp + 0x1c], eax
jge 0x45bc96
lea edx, [ebx + 0x8c]
push edx
push str._s:_invalid_slippage_for_OrderSend_function
mov eax, dword [ebx + 0x1384]
push 3
push eax
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfd3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x548]
mov edi, dword [ebx + 0xb28]
push str.OrderSend
add ecx, 0x50
push 5
push ecx
mov ecx, ebx
call fcn.0044aac0
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00429ac0
fst qword [esp + 0x48]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45bce0
lea edx, [ebx + 0x8c]
push edx
push str._s:_invalid_stoploss_for_OrderSend_function
jmp 0x45bd28
mov ecx, dword [ebx + 0x548]
mov edi, dword [ebx + 0xb28]
push str.OrderSend
add ecx, 0x60
push 6
push ecx
mov ecx, ebx
call fcn.0044aac0
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00429ac0
fst qword [esp + 0x50]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45bd4f
lea edx, [ebx + 0x8c]
push edx
push str._s:_invalid_takeprofit_for_OrderSend_function
mov eax, dword [ebx + 0x1384]
push 3
push eax
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0x100b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
cmp edi, 7
jle 0x45bd91
mov eax, dword [ebx + 0x548]
mov ecx, dword [eax + 0x70]
cmp ecx, 0xd
jne 0x45bd87
mov eax, dword [eax + 0x7c]
cmp eax, esi
jne 0x45be75
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0xc]
push ecx
push str._s:_the_comment_parameter_for_OrderSend_function_must_be_a_string
push 3
push edx
jmp 0x45ca8b
cmp ecx, 0xa
jne 0x45bd70
cmp dword [eax + 0x78], esi
jne 0x45bd70
cmp edi, 8
jle 0x45bdb4
mov eax, dword [ebx + 0x548]
push str.OrderSend
add eax, 0x80
push 8
push eax
mov ecx, ebx
call fcn.0044ab40
mov dword [esp + 0x34], eax
cmp edi, 9
jle 0x45bdd8
mov ecx, dword [ebx + 0x548]
push str.OrderSend
add ecx, 0x90
push 9
push ecx
mov ecx, ebx
call fcn.0044ab40
mov dword [esp + 0x20], eax
cmp edi, 0xa
jle 0x45bdfc
mov edx, dword [ebx + 0x548]
push str.OrderSend
add edx, 0xa0
push 0xa
push edx
mov ecx, ebx
call fcn.0044ab40
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ecx, dword [ebx + 0xb28]
push edi
push esi
call fcn.00429ac0
fst qword [esp + 0x40]
fsub qword [esp + 0x38]
mov eax, dword [ebx + 0xb28]
inc eax
fabs
fstp qword [esp + 0x38]
push eax
call fcn.00428ce0
fdivr qword [0x567050]
add esp, 4
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x45be7e
mov edx, dword [ebx + 0x1384]
push edi
lea ecx, [ebx + 0x8c]
push esi
push ecx
push str._s:_invalid_price__.8lf_for_OrderSend_function
push 3
push edx
call fcn.0046b660
add esp, 0x18
mov dword [ebx + 0x138c], 0x100b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x30], eax
jmp 0x45bd91
mov esi, dword [ebx + 0x9b0]
mov eax, esi
and eax, 4
cmp al, 4
je 0x45bea3
mov dword [ebx + 0x138c], 0x100d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x24]
mov ecx, esi
and ecx, 1
cmp cl, 1
je 0x45bed5
test eax, eax
je 0x45bebf
cmp eax, 2
je 0x45bebf
cmp eax, 4
jne 0x45bed5
mov dword [ebx + 0x138c], 0x100e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, esi
and edx, 2
cmp dl, 2
je 0x45bf04
cmp eax, 1
je 0x45beee
cmp eax, 3
je 0x45beee
cmp eax, 5
jne 0x45bf04
mov dword [ebx + 0x138c], 0x100f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov ax, word [esp + 0x24]
push 0xb
lea edx, [esp + 0x78]
push ecx
push edx
mov word [esp + 0x76], ax
call esi
fld qword [esp + 0x1c]
fmul qword [0x56cc48]
mov eax, dword [esp + 0x40]
add esp, 0xc
mov byte [esp + 0x7f], 0
mov dword [esp + 0x70], eax
fadd qword [0x56ce88]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xc0], edx
je 0x45bfd3
push 0x1f
lea ecx, [esp + 0xa4]
push eax
push ecx
call esi
add esp, 0xc
mov byte [esp + 0xbf], 0
mov edx, dword [ebx + 0x9b0]
and edx, 8
cmp dl, 8
jne 0x45c159
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x5a0f78]
lea eax, [esp + 0x1c]
push eax
push 0x14d1
call fcn.004c27f0
lea edi, [ebx + 0xc]
push 0x1e
lea ecx, [esp + 0x24c]
push edi
push ecx
call esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x266], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x45c03e
mov byte [esp + 0x265], 0x85
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x3e8]
push 0x20
push edx
push 2
push eax
push ecx
call fcn.00429d30
mov edx, dword [esp + 0x40]
add esp, 0x14
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0042abe0
add esp, 4
lea ecx, [esp + 0x250]
lea edx, [esp + 0x28]
push eax
push ecx
push edi
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebx + 0x9dc]
mov dword [eax], 1
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xe0]
push 0
lea edx, [esp + 0x84]
push ecx
push edx
push eax
push ebx
call fcn.004c48b0
add esp, 0x2c
test eax, eax
je 0x45c0e7
mov ecx, dword [ebx + 0x9dc]
mov dword [ecx], 0
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x138c], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x9dc]
mov dword [edx], 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x137c]
cmp eax, 3
je 0x45ca11
test eax, eax
mov eax, dword [esp + 0x28]
jle 0x45c326
cmp eax, 0xffffffff
jne 0x45c32f
mov ax, word [esp + 0x6a]
cmp ax, 1
je 0x45c31c
cmp ax, 3
je 0x45c31c
cmp ax, 5
je 0x45c31c
mov dword [esp + 0x28], 0xff0000
jmp 0x45c32f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45c170
cmp eax, 1
je 0x45c170
mov byte [esp + 0x68], 0x43
jmp 0x45c2c0
mov eax, dword [ebx + 0x11d4]
test eax, eax
jle 0x45c18d
cmp dword [esp + 0x80], eax
jle 0x45c18d
mov dword [ebx + 0x1144], 0
mov eax, dword [ebx + 0x1144]
sub eax, 0
je 0x45c1c8
dec eax
je 0x45c1be
dec eax
je 0x45c1b4
mov dword [ebx + 0x138c], 0xfe3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x68], 0x42
jmp 0x45c2c0
mov byte [esp + 0x68], 0x40
jmp 0x45c2c0
mov ecx, 0x18
lea esi, [esp + 0x68]
lea edi, [esp + 0x368]
mov byte [esp + 0x68], 0x41
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x1388]
lea eax, [esp + 0x368]
push 1
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov byte [esp + 0x370], 0
call fcn.00553a40
test eax, eax
je 0x45c232
mov dword [ebx + 0x138c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x1388]
lea eax, [esp + 0x58]
push 0
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x370]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x45c262
mov dword [ebx + 0x138c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0xb28]
push ecx
fstp qword [esp + 0x14]
call fcn.00428ce0
mov eax, dword [esp + 0x28]
add esp, 4
fdivr qword [esp + 0x10]
test eax, eax
jne 0x45c28b
fld qword [esp + 0x60]
jmp 0x45c28f
fld qword [esp + 0x58]
fst qword [esp + 0x84]
fld qword [esp + 0x40]
fsub st(2)
fld st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x45ca2b
fxch st(1)
fadd qword [esp + 0x40]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x45ca2f
mov ecx, dword [ebx + 0x1388]
lea edx, [esp + 0x68]
push 1
push edx
call fcn.00553a40
test eax, eax
je 0x45c2e8
mov dword [ebx + 0x138c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x1388]
lea edx, [esp + 0xc8]
push edx
lea edx, [esp + 0x6c]
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x14]
test eax, eax
je 0x45c105
mov dword [ebx + 0x138c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x28], 0xff
jmp 0x45c32f
cmp eax, 0xffffffff
je 0x45c7e5
mov eax, dword [ebx + 0x978]
test eax, eax
je 0x45c7e5
mov edi, dword [esp + 0x2c]
lea esi, [ebx + 0x294]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x45c36f
test al, al
je 0x45c36b
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x45c36f
add edi, 2
add esi, 2
test al, al
jne 0x45c347
xor eax, eax
jmp 0x45c374
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45c7e5
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45c54d
mov ecx, eax
call fcn.004cbb80
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
je 0x45c54d
mov eax, dword [ebx + 0xb28]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push eax
push ecx
push edx
lea eax, [esp + 0x1b4]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x94]
add esp, 0x14
mov edx, dword [esp + 0xe0]
lea ecx, [esp + 0x74]
fmul qword [0x565ad0]
push eax
push ecx
sub esp, 8
fstp qword [esp]
push edx
call fcn.0042abe0
add esp, 4
lea ecx, [esp + 0x258]
push eax
mov eax, dword [esp + 0xdc]
push eax
push str._d__s__.2lf__s_at__s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x26c]
push 0x3f
lea edx, [edi + 0xc]
push ecx
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov dword [edi + 0xa0], eax
mov eax, dword [esp + 0x60]
add esp, 0x30
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xc4], edx
mov dword [edi + 0xe0], 1
mov byte [esp + 0x248], 0
test eax, eax
je 0x45c4aa
push 0x3f
lea ecx, [esp + 0x24c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x287], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45c518
mov al, byte [esp + 0x248]
mov esi, 1
test al, al
je 0x45c4c4
xor esi, esi
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x408]
push edx
push str.___d_
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + esi + 0x418]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x248]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 + 0x2c]
mov al, byte [esp + 0x248]
test al, al
je 0x45c541
lea eax, [esp + 0x248]
push 0x3f
lea ecx, [edi + 0x4c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + 0x8b], 0
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
fld qword [esp + 0xf8]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x45c699
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45c699
mov ecx, eax
call fcn.004cbb80
mov edi, eax
test edi, edi
je 0x45c699
mov edx, dword [ebx + 0xb28]
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf8]
push edx
push eax
push ecx
lea edx, [esp + 0x3d4]
push 0x20
push edx
call fcn.00429bd0
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
add esp, 0x14
push eax
mov eax, dword [ebx + 0xb28]
push eax
push ecx
push edx
lea eax, [esp + 0x1b8]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x98]
add esp, 0x14
mov edx, dword [esp + 0xe4]
lea ecx, [esp + 0x78]
fmul qword [0x565ad0]
push eax
push ecx
sub esp, 8
fstp qword [esp]
push edx
call fcn.0042abe0
add esp, 4
lea ecx, [esp + 0x25c]
push eax
mov eax, dword [esp + 0xe0]
push eax
push str._d__s__.2lf__s_at__s_stop_loss_at__s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x270]
push 0x3f
lea edx, [edi + 0xc]
push ecx
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 0x34
mov dword [edi + 0xa0], eax
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xc4], 0xff
mov dword [edi + 0xe0], 4
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
fld qword [esp + 0x100]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x45c7e5
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45c7e5
mov ecx, eax
call fcn.004cbb80
mov edi, eax
test edi, edi
je 0x45c7e5
mov edx, dword [ebx + 0xb28]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push edx
push eax
push ecx
lea edx, [esp + 0x354]
push 0x20
push edx
call fcn.00429bd0
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
add esp, 0x14
push eax
mov eax, dword [ebx + 0xb28]
push eax
push ecx
push edx
lea eax, [esp + 0x1b8]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x98]
add esp, 0x14
mov edx, dword [esp + 0xe4]
lea ecx, [esp + 0x78]
fmul qword [0x565ad0]
push eax
push ecx
sub esp, 8
fstp qword [esp]
push edx
call fcn.0042abe0
add esp, 4
lea ecx, [esp + 0x25c]
push eax
mov eax, dword [esp + 0xe0]
push eax
push str._d__s__.2lf__s_at__s_take_profit_at__s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x270]
push 0x3f
lea edx, [edi + 0xc]
push ecx
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 0x34
mov dword [edi + 0xa0], eax
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xc4], 0xff0000
mov dword [edi + 0xe0], 4
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
mov dl, byte [0x5937a0]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c9]
mov byte [esp + 0x1c8], dl
mov byte [esp + 0x208], dl
rep stosd dword es:[edi], eax
fld qword [esp + 0xf8]
fcomp qword [0x565ac0]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x209]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
fnstsw ax
test ah, 0x41
jne 0x45c875
mov edx, dword [ebx + 0xb28]
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf8]
push edx
push eax
push ecx
lea edx, [esp + 0x3d4]
push 0x20
push edx
call fcn.00429bd0
add esp, 0x14
push eax
push str._sl:__s
lea eax, [esp + 0x1d0]
push 0x40
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
fld qword [esp + 0x100]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x45c8cb
mov ecx, dword [ebx + 0xb28]
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x100]
push ecx
push edx
push eax
lea ecx, [esp + 0x354]
push 0x20
push ecx
call fcn.00429bd0
add esp, 0x14
lea edx, [esp + 0x208]
push eax
push str._tp:__s
push 0x40
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xe0]
cmp eax, esi
jne 0x45c97c
mov edx, dword [ebx + 0xb28]
lea eax, [esp + 0x208]
lea ecx, [esp + 0x1c8]
push eax
mov eax, dword [esp + 0xf8]
push ecx
mov ecx, dword [esp + 0xf8]
push edx
push eax
push ecx
lea edx, [esp + 0x1bc]
push 0x20
push edx
call fcn.00429bd0
fild dword [esp + 0x100]
add esp, 0x14
fmul qword [0x565ad0]
push eax
lea eax, [esp + 0xdc]
push eax
sub esp, 8
fstp qword [esp]
push esi
call fcn.0042abe0
mov ecx, dword [esp + 0xe4]
add esp, 4
lea edx, [ebx + 0x8c]
push eax
mov eax, dword [ebx + 0x1384]
push ecx
push edx
push str._s:_open__d__s__.2lf__s_at__s_s_s_ok
push 2
push eax
call fcn.0046b660
mov eax, dword [esp + 0xf8]
add esp, 0x30
mov dword [ebx + 0x138c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0xb28]
lea ecx, [esp + 0x208]
lea edx, [esp + 0x1c8]
push ecx
mov ecx, dword [esp + 0xf8]
push edx
mov edx, dword [esp + 0xf8]
push eax
push ecx
push edx
lea eax, [esp + 0x1bc]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x100]
add esp, 0x14
lea ecx, [esp + 0xd8]
fmul qword [0x565ad0]
push eax
push ecx
sub esp, 8
fstp qword [esp]
push esi
call fcn.0042abe0
mov edx, dword [esp + 0xfc]
add esp, 4
push eax
push edx
call fcn.0042abe0
add esp, 4
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0x8c]
push eax
mov eax, dword [esp + 0xe8]
push eax
push ecx
push str._s:_open__d__s__instead_of__s___.2lf__s_at__s_s_s_ok
push 2
push edx
call fcn.0046b660
add esp, 0x34
mov dword [ebx + 0x138c], 0
mov eax, dword [esp + 0xc8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fstp st(0)
fstp st(0)
mov dword [ebx + 0x138c], 0x87
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx + 0x8c]
push ecx
mov ecx, dword [ebx + 0x1384]
push eax
push str._s:_unknown_trade_cmd__d_for_OrderSend_function
push 3
push ecx
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0xfd3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x1384]
lea edx, [ebx + 0xc]
push edx
push str._s:_symbol_name_for_OrderSend_function_must_be_a_string
push 3
push eax
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfde
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0x8c]
push str.OrderSend
push ecx
push str._s:_invalid_parameters_for__s_function
push 3
push edx
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0xfd2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4