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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x37
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x2c4]
mov dword [esp + 0x18], 0xffffffff
cmp eax, 1
jne 0x45cb73
mov ecx, dword [ebx + 0x1384]
lea eax, [ebx + 0xc]
push eax
push str.Custom_indicator__s:_OrderModify_function_cannot_be_called_from_a_custom_indicator
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfd7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
cmp edi, 5
jl 0x45d525
cmp edi, 6
jg 0x45d525
mov eax, dword [ebx + 0x1388]
test eax, eax
je 0x45d551
mov eax, dword [ebx + 0x548]
cmp dword [eax], 0xa
je 0x45cbd3
mov eax, dword [ebx + 0x1384]
lea edx, [ebx + 0x8c]
push edx
push str._s:_ticket_for_OrderModify_function_must_be_an_integer
push 3
push eax
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfdf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [eax + 8]
test esi, esi
mov dword [esp + 0x10], esi
jg 0x45cbf8
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0x8c]
push ecx
push str._s:_invalid_ticket_for_OrderModify_function
push 3
push edx
jmp 0x45ccc2
push str.OrderModify
add eax, 0x10
push 1
push eax
mov ecx, ebx
call fcn.0044aac0
fst qword [esp + 0x20]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45cc4d
mov ecx, dword [ebx + 0x1384]
lea eax, [ebx + 0x8c]
push eax
push str._s:_invalid_price_for_OrderModify_function
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0x100b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x548]
push str.OrderModify
add edx, 0x20
push 2
push edx
mov ecx, ebx
call fcn.0044aac0
fst qword [esp + 0x28]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45cc84
lea eax, [ebx + 0x8c]
push eax
push str._s:_invalid_stoploss_for_OrderModify_function
jmp 0x45ccb9
mov edx, dword [ebx + 0x548]
push str.OrderModify
add edx, 0x30
push 3
push edx
mov ecx, ebx
call fcn.0044aac0
fst qword [esp + 0x30]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x45ccdf
lea eax, [ebx + 0x8c]
push eax
push str._s:_invalid_takeprofit_for_OrderModify_function
mov ecx, dword [ebx + 0x1384]
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov dword [ebx + 0x138c], 0xfd3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x548]
push str.OrderModify
add edx, 0x40
push 4
push edx
mov ecx, ebx
call fcn.0044ab40
cmp edi, 5
mov dword [esp + 0x1c], eax
jle 0x45cd1c
mov eax, dword [ebx + 0x548]
push str.OrderModify
add eax, 0x50
push 5
push eax
mov ecx, ebx
call fcn.0044ab40
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x1388]
push esi
call fcn.00550fa0
test eax, eax
jne 0x45cd64
mov eax, dword [ebx + 0x1384]
lea edx, [ebx + 0x8c]
push esi
push edx
push str._s:_unknown_ticket__d_for_OrderModify_function
push 3
push eax
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0x100c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x38
lea esi, [esp + 0x38]
lea edi, [esp + 0x338]
lea eax, [ebx + 0xac0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x1388]
push eax
lea eax, [esp + 0x44]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
test eax, eax
jne 0x45cdc8
mov eax, dword [ebx + 0x1384]
lea ecx, [esp + 0x40]
lea edx, [ebx + 0x8c]
push ecx
push edx
push str._s:_unknown_symbol_name__s_for_OrderModify_function
push 3
push eax
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0x100a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x9b0]
and ecx, 4
cmp cl, 4
je 0x45cdeb
mov dword [ebx + 0x138c], 0x100d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x118]
push 0xb
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x128]
push eax
push ecx
mov dword [esp + 0x128], edx
call esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0xb28]
add esp, 0xc
mov byte [esp + 0x12f], 0
push edx
push eax
call fcn.00429ac0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
fstp qword [esp + 0x134]
mov ecx, dword [ebx + 0xb28]
push edx
push eax
call fcn.00429ac0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
fstp qword [esp + 0x13c]
mov ecx, dword [ebx + 0xb28]
push edx
push eax
call fcn.00429ac0
mov eax, dword [ebx + 0x9b0]
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x50]
and eax, 8
fstp qword [esp + 0x144]
cmp al, 8
mov dword [esp + 0x170], ecx
mov byte [esp + 0x118], 0x47
mov word [esp + 0x11a], dx
jne 0x45d02d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x5a0f78]
push 0x14d6
call fcn.004c27f0
mov ecx, dword [0x5a0f78]
lea edx, [esp + 0x20]
push edx
push 0x14d4
call fcn.004c27f0
lea edi, [ebx + 0xc]
push 0x1e
lea eax, [esp + 0x1bc]
push edi
push eax
call esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x1d6], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x45cf24
mov byte [esp + 0x1d5], 0x85
fild dword [esp + 0x54]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2f8]
push 0x20
fmul qword [0x565ad0]
push ecx
sub esp, 8
fstp qword [esp]
call fcn.0042a0c0
add esp, 0x10
lea edx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.0042abe0
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x1c0]
push eax
push ecx
push edi
push edx
lea eax, [esp + 0x34]
push esi
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebx + 0x9dc]
mov dword [ecx], 1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x58]
push 2
lea eax, [esp + 0x13c]
push edx
push eax
push ecx
push ebx
call fcn.004c48b0
add esp, 0x34
test eax, eax
je 0x45cfe0
mov edx, dword [ebx + 0x9dc]
mov dword [edx], 0
lea ecx, [esp + 0x28]
mov dword [ebx + 0x138c], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x9dc]
mov dword [eax], 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x137c]
cmp eax, 3
je 0x45d50d
test eax, eax
mov eax, dword [esp + 0x18]
jle 0x45d086
cmp eax, 0xffffffff
jne 0x45d08f
mov dword [esp + 0x18], 0xff
jmp 0x45d08f
lea ecx, [esp + 0x118]
push 1
push ecx
mov ecx, dword [ebx + 0x1388]
call fcn.00553a40
test eax, eax
je 0x45d057
mov dword [ebx + 0x138c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x1388]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x11c]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x14]
test eax, eax
je 0x45d007
mov dword [ebx + 0x138c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
je 0x45d45c
mov eax, dword [ebx + 0x978]
test eax, eax
je 0x45d45c
lea esi, [ebx + 0x294]
lea edi, [esp + 0x40]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x45d0cf
test al, al
je 0x45d0cb
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x45d0cf
add edi, 2
add esi, 2
test al, al
jne 0x45d0a7
xor eax, eax
jmp 0x45d0d4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45d45c
mov al, byte [0x5937a0]
mov ecx, 0xf
mov byte [esp + 0x178], al
xor eax, eax
fld qword [esp + 0x60]
lea edi, [esp + 0x179]
fcomp qword [esp + 0x360]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
fnstsw ax
test ah, 0x40
jne 0x45d291
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45d12d
mov ecx, eax
call fcn.004cbb80
mov edi, eax
jmp 0x45d12f
xor edi, edi
lea esi, [ebx + 0x8f0]
push esi
call dword [sym.imp.MSVCRT.dll_gmtime]
add esp, 4
test eax, eax
je 0x45d175
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
push 0x581308
lea ecx, [esp + 0x190]
push 0x3f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x20
test edi, edi
je 0x45d291
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x178]
push edx
push eax
call fcn.0042abe0
mov ecx, dword [esp + 0x40]
add esp, 4
lea edx, [esp + 0x1bc]
push eax
push ecx
push str._d__s_modified__s
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ax, word [esp + 0x132]
add esp, 0x18
cmp ax, 1
je 0x45d22a
cmp ax, 3
je 0x45d22a
cmp ax, 5
je 0x45d22a
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [esi]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1b8]
push 0x3f
lea eax, [edi + 0xc]
push edx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [edi + 0xa0], ecx
add esp, 0xc
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], edx
mov dword [edi + 0xc4], eax
mov dword [edi + 0xe0], 1
jmp 0x45d285
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov esi, dword [esi]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x1b8]
push 0x3f
lea ecx, [edi + 0xc]
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0xa0], edx
add esp, 0xc
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], eax
mov dword [edi + 0xc4], ecx
mov dword [edi + 0xe0], 2
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
fld qword [esp + 0x68]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x45d375
fld qword [esp + 0x68]
fcomp qword [esp + 0x368]
fnstsw ax
test ah, 0x40
jne 0x45d375
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45d375
mov ecx, eax
call fcn.004cbb80
mov edi, eax
test edi, edi
je 0x45d375
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x178]
push edx
push eax
push str._d_sl_modified__s
lea ecx, [esp + 0x1c4]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x1cc]
push 0x3f
lea edx, [edi + 0xc]
push ecx
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 0x20
mov dword [edi + 0xa0], eax
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], ecx
mov dword [edi + 0xc4], edx
mov dword [edi + 0xe0], 4
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
fld qword [esp + 0x70]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x45d45c
fld qword [esp + 0x70]
fcomp qword [esp + 0x370]
fnstsw ax
test ah, 0x40
jne 0x45d45c
push pe_nt_image_headers32
call fcn.004c2e90
add esp, 4
test eax, eax
je 0x45d45c
mov ecx, eax
call fcn.004cbb80
mov edi, eax
test edi, edi
je 0x45d45c
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x178]
push eax
push ecx
push str._d_tp_modified__s
lea edx, [esp + 0x1c4]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1cc]
push 0x3f
lea eax, [edi + 0xc]
push edx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 0x20
mov dword [edi + 0xa0], ecx
mov byte [edi + 0x4b], 0
mov dword [edi + 0x90], esi
mov dword [edi + 0xa4], edx
mov dword [edi + 0xc4], eax
mov dword [edi + 0xe0], 4
mov ecx, dword [ebx + 0x978]
push edi
call fcn.0041ac20
mov ecx, dword [ebx + 0xb28]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c4]
push 0x20
push ecx
call fcn.00429bd0
mov edx, dword [ebx + 0xb28]
mov ecx, dword [esp + 0x7c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
push ecx
lea edx, [esp + 0x328]
push 0x20
push edx
call fcn.00429bd0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
add esp, 0x14
push eax
mov eax, dword [ebx + 0xb28]
push eax
push ecx
push edx
lea eax, [esp + 0x2ec]
push 0x20
push eax
call fcn.00429bd0
fild dword [esp + 0x70]
add esp, 0x14
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x48]
fmul qword [0x565ad0]
push eax
push ecx
sub esp, 8
fstp qword [esp]
push edx
call fcn.0042abe0
add esp, 4
mov edx, dword [ebx + 0x1384]
lea ecx, [ebx + 0x8c]
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push str._s:_modify__d__s__.2lf__s_at__s_sl:__s_tp:__s_ok
push 2
push edx
call fcn.0046b660
add esp, 0x30
mov dword [ebx + 0x138c], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x1384]
lea eax, [ebx + 0x8c]
push str.OrderModify
push eax
push str._s:_invalid_parameters_for__s_function
push 3
push ecx
call fcn.0046b660
add esp, 0x14
mov dword [ebx + 0x138c], 0xfd2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4