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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp eax, 1
mov ebp, dword [edi + 0x23d4]
mov esi, dword [edi + 0x23d8]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
jne 0x40bd93
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
sub esp, 8
mov ecx, dword [eax]
fld dword [edx]
mov dword [esp + 0x7c], ecx
mov ecx, edi
fstp qword [esp]
call fcn.0040e820
fcom dword [0x4158d8]
fst dword [esp + 0x6c]
fnstsw ax
test ah, 1
je 0x40bcf2
fadd dword [0x41593c]
fst dword [esp + 0x6c]
fcomp dword [0x41593c]
fnstsw ax
test ah, 0x40
je 0x40bd07
mov dword [esp + 0x6c], 0
mov ecx, dword [edi + 0x23d8]
test ecx, ecx
je 0x40bd32
mov eax, dword [esp + 0x10]
fld dword [esp + 0x74]
lea edx, [eax*8]
sub edx, eax
add ecx, eax
lea eax, [ecx + edx*4]
fmul dword [edi + eax*4 + 0x1e74]
fstp dword [esp + 0x74]
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x14]
push 2
push 1
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esi], 0
mov byte [esi + 1], 0xe
mov ecx, dword [sym.imp.SendDataDll.dll_class_CWriteData_m_pWriteData]
push 1
push esi
call dword [sym.imp.SendDataDll.dll_public:_void___thiscall_CWriteData::WriteHarChgFrame_unsigned_char___int__float__const__float__const__int__const__int__const__int__int_]
mov ecx, dword [edi + 0x24ac]
push 0xffffffffffffffff
push 0x10
push esi
call dword [sym.imp.NetSockDll.dll_public:_unsigned_long_int___thiscall_CSocket::WriteComm_unsigned_char__const__unsigned_long_int__unsigned_long_int_]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
cmp eax, 2
jne 0x40befa
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov edx, esi
mov ecx, dword [eax]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], edx
sub ebx, eax
xor edx, edx
lea ecx, [esp + edx + 0x30]
fld dword [ebx + ecx]
fcom dword [0x4158d8]
fst dword [ecx]
fnstsw ax
test ah, 1
je 0x40bde3
fadd dword [0x41593c]
fstp dword [ecx]
jmp 0x40bde5
fstp st(0)
cmp dword [ecx], 0x43b40000
jne 0x40bdf3
mov dword [ecx], 0
add edx, 4
cmp edx, 8
jl 0x40bdc3
cmp ebp, 6
jne 0x40be34
test esi, esi
je 0x40be22
fld dword [esp + 0x18]
fmul dword [edi + esi*4 + 0x1fd0]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [edi + esi*4 + 0x2044]
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 4
jmp 0x40be9c
cmp ebp, 7
jne 0x40be65
test esi, esi
je 0x40be5b
fld dword [esp + 0x18]
fmul dword [edi + esi*4 + 0x2044]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [edi + esi*4 + 0x20b8]
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], 4
jmp 0x40be94
cmp ebp, 8
jne 0x40be9c
test esi, esi
je 0x40be8c
fld dword [esp + 0x18]
fmul dword [edi + esi*4 + 0x1fd0]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [edi + esi*4 + 0x20b8]
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 5
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
lea edx, [esp + 0x28]
push 2
push 1
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esi], 0
mov byte [esi + 1], 0x16
mov ecx, dword [sym.imp.SendDataDll.dll_class_CWriteData_m_pWriteData]
push 2
push esi
call dword [sym.imp.SendDataDll.dll_public:_void___thiscall_CWriteData::WriteHarChgFrame_unsigned_char___int__float__const__float__const__int__const__int__const__int__int_]
mov ecx, dword [edi + 0x24ac]
push 0xffffffffffffffff
push 0x18
push esi
call dword [sym.imp.NetSockDll.dll_public:_unsigned_long_int___thiscall_CSocket::WriteComm_unsigned_char__const__unsigned_long_int__unsigned_long_int_]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
cmp eax, 3
jne 0x40c014
mov eax, dword [esp + 0x6c]
mov edx, esi
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x50], edx
mov ecx, dword [eax]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3c], edx
sub ebx, ecx
mov eax, dword [eax + 8]
xor edx, edx
mov dword [esp + 0x40], eax
lea ecx, [esp + edx + 0x5c]
fld dword [ebx + ecx]
fcom dword [0x4158d8]
fst dword [ecx]
fnstsw ax
test ah, 1
je 0x40bf55
fadd dword [0x41593c]
fstp dword [ecx]
jmp 0x40bf57
fstp st(0)
cmp dword [ecx], 0x43b40000
jne 0x40bf65
mov dword [ecx], 0
add edx, 4
cmp edx, 0xc
jl 0x40bf35
test esi, esi
je 0x40bf9e
fld dword [esp + 0x38]
fmul dword [edi + esi*4 + 0x1fd0]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul dword [edi + esi*4 + 0x2044]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [edi + esi*4 + 0x20b8]
fstp dword [esp + 0x40]
push 0x20
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], 5
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x50]
push 2
push 1
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esi], 0
mov byte [esi + 1], 0x1e
mov ecx, dword [sym.imp.SendDataDll.dll_class_CWriteData_m_pWriteData]
push 3
push esi
call dword [sym.imp.SendDataDll.dll_public:_void___thiscall_CWriteData::WriteHarChgFrame_unsigned_char___int__float__const__float__const__int__const__int__const__int__int_]
mov ecx, dword [edi + 0x24ac]
push 0xffffffffffffffff
push 0x20
push esi
call dword [sym.imp.NetSockDll.dll_public:_unsigned_long_int___thiscall_CSocket::WriteComm_unsigned_char__const__unsigned_long_int__unsigned_long_int_]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
mov esi, dword [esp + 0x6c]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc