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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x104c
call fcn.0040e900
push ebx
mov ebx, dword [0x413174]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
je 0x404efc
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00404990
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c47
sub eax, edx
mov edx, eax
test edx, edx
mov dword [esp + 0x30], edx
jle 0x404efc
mov edi, edi
mov eax, dword [ebp + 8]
movzx eax, byte [edi + eax]
mov ecx, dword [0x41317c]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x404c83
movsx eax, word [ebx + 0x18]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x404eef
mov ecx, dword [0x413178]
mov dl, byte [ecx + eax]
mov byte [esp + 0x1c], dl
xor edx, edx
lea edi, [ecx + eax]
movsx eax, word [ebx + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
add edi, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x84], edx
movzx eax, byte [edi]
neg ecx
inc edi
cmp eax, 0xff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edx
je 0x404ecd
lea ebx, [esp + 0xb8]
mov edi, edi
cmp eax, 0xfe
jne 0x404d46
mov eax, dword [esp + 0x14]
cmp eax, 1
jle 0x404d39
mov dword [esp + edx*4 + 0x38], eax
inc edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
jmp 0x404e8f
movzx edx, byte [edi]
sub eax, ecx
mov dword [esp + 0x10], eax
sub edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
inc edi
fild dword [esp + 0x18]
fild dword [esp + 0x10]
fld st(1)
fmul qword [esp + 0x90]
fld st(1)
fmul qword [esp + 0x88]
faddp st(1)
fadd qword [esp + 0x98]
fadd qword [0x411078]
call fcn.0040e9d0
fmul qword [esp + 0xa0]
fxch st(1)
mov dword [ebx], eax
fmul qword [esp + 0xa8]
faddp st(1)
fadd qword [esp + 0xb0]
fadd qword [0x411078]
call fcn.0040e9d0
mov ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
jne 0x404de1
push 0
push 0
push 0x259
push str..DrawArea.cpp
push 0x411098
call sub.SLibs500.dll_int___cdecl_SSM_AssertFailed_char_const___char_const___int__enum_SSM_FailureType__int_
add esp, 0x14
test eax, eax
jne 0x404ddd
int3
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x2c]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
sub edx, ecx
mov dword [esp + 0x10], edx
fmul qword [esi + 0x80]
fild dword [esp + 0x10]
fdivp st(1)
fiadd dword [esi + 0xc]
fadd qword [0x411078]
call fcn.0040e9d0
mov ecx, dword [esi + 0x28]
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
cmp ecx, dword [esi + 0x30]
jne 0x404e42
push 0
push 0
push 0x262
push str..DrawArea.cpp
push 0x411098
call sub.SLibs500.dll_int___cdecl_SSM_AssertFailed_char_const___char_const___int__enum_SSM_FailureType__int_
add esp, 0x14
test eax, eax
jne 0x404e42
int3
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x10]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x28]
fild dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x10], eax
fmul qword [esi + 0x88]
fild dword [esp + 0x10]
fdivp st(1)
fiadd dword [esi + 0x10]
fadd qword [0x411078]
call fcn.0040e9d0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
add ebx, 8
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi]
inc edi
cmp eax, 0xff
jne 0x404d20
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x404eab
mov dword [esp + edx*4 + 0x38], eax
inc edx
test edx, edx
jle 0x404ec7
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc0]
push ecx
push edx
call dword [sym.imp.GDI32.dll_PolyPolyline]
mov ebx, dword [0x413174]
movzx ecx, byte [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x98]
mov edi, dword [esp + 0x28]
add ecx, edx
mov edx, dword [esp + 0x30]
lea eax, [eax + eax*2]
add ecx, eax
mov dword [esp + 0x20], ecx
inc edi
cmp edi, edx
mov dword [esp + 0x28], edi
jl 0x404c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4