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

Disassembly:
sub esp, 0xdc
mov ecx, dword [0x4b0474]
mov eax, dword [0x4b0470]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x6baa04]
push ebx
mov ebx, dword [0x509aec]
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x40b793
mov eax, dword [0x509ae8]
test eax, eax
je 0x40b793
mov edx, dword [0x4b046c]
mov dword [esp + 0x18], 0
test edx, edx
jle 0x40b786
push ebp
push esi
push edi
mov dword [esp + 0x18], 0x509ad8
jmp 0x40b403
mov eax, dword [0x509ae8]
mov edx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [edx], ebp
je 0x40b75b
mov ecx, dword [esp + 0xf0]
push ebp
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov edx, dword [eax]
push ecx
push 0x2020
push eax
mov dword [esp + 0x30], ebp
mov byte [esp + 0x27], 0
call dword [edx + 0xc]
mov esi, dword [esp + 0xf8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], edx
test ecx, ecx
jle 0x40b6fd
xor eax, eax
mov ecx, dword [esp + 0x24]
mov al, byte [edx + esi]
lea edx, [eax + eax*4]
movsx eax, byte [edx*4 + 0x507738]
lea ebp, [edx*4 + 0x507738]
cmp eax, ecx
jne 0x40b6c9
fld dword [esp + 0x40]
fadd dword [esp + 0xf4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 4]
push ecx
push edx
fadd dword [0x477fec]
push ebx
push 0x3f800000
push 0x3f800000
lea edx, [esp + 0xc8]
fstp dword [esp + 0x40]
fld dword [esp + 0x30]
fsub dword [0x477fec]
mov eax, dword [esp + 0x40]
push eax
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
push ecx
push edx
call fcn.0040bcc0
mov edi, dword [esp + 0x30]
mov ecx, 7
fld dword [esp + 0x114]
fsub dword [0x477fec]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
add eax, 0x1c
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push ebx
push 0x3f800000
push 0x3f800000
push edx
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.0040bcc0
mov edi, dword [esp + 0x50]
mov ecx, 7
fld dword [esp + 0x5c]
fadd dword [esp + 0x78]
mov esi, eax
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
fadd dword [0x477fec]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add eax, 0x1c
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push eax
push ebx
push 0x3f800000
push 0x3f800000
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.0040bcc0
mov edi, dword [esp + 0x30]
mov ecx, 7
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
add esi, 0x1c
mov dword [esp + 0x30], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push edx
push ebx
push 0x3f800000
push 0x3f800000
push eax
lea edx, [esp + 0x98]
push ecx
push edx
call fcn.0040bcc0
mov edi, dword [esp + 0x50]
mov ecx, 7
mov esi, eax
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
add edx, 0x1c
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push ebx
push 0x3f800000
push 0x3f800000
push edx
lea ecx, [esp + 0xb0]
push eax
push ecx
call fcn.0040bcc0
mov edi, dword [esp + 0x30]
mov ecx, 7
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
add ecx, 0x1c
mov dword [esp + 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ebx
push 0x3f800000
push 0x3f800000
push ecx
lea eax, [esp + 0x108]
push edx
push eax
call fcn.0040bcc0
mov edi, dword [esp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x60]
mov ecx, 7
add eax, 2
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
lea esi, [eax + eax*2]
add edx, 0x1c
cmp esi, 0x1ee
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jle 0x40b6c9
mov edx, dword [esp + 0x18]
mov eax, dword [0x6baa04]
xor edi, edi
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x8c]
mov eax, dword [0x509ae8]
mov byte [esp + 0x17], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [0x6baa04]
mov ecx, dword [0x509ae8]
push edi
push esi
mov edx, dword [eax]
push edi
push ecx
push 4
push eax
call dword [edx + 0x7c]
mov eax, dword [0x509ae8]
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x14], edi
mov edx, dword [eax]
push ecx
push 0x2020
push eax
call dword [edx + 0xc]
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0xf8]
mov edx, dword [esp + 0x3c]
fld dword [esp + 0x1c]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc edx
fadd dword [esp + 0x38]
repne scasb al, byte es:[edi]
fstp dword [esp + 0x1c]
not ecx
dec ecx
mov dword [esp + 0x3c], edx
cmp edx, ecx
jl 0x40b45b
mov ebp, dword [esp + 0x20]
mov eax, dword [0x509ae8]
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
test ebp, ebp
jle 0x40b75b
mov al, byte [esp + 0x17]
test al, al
jne 0x40b72b
mov edx, dword [esp + 0x18]
mov eax, dword [0x6baa04]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x8c]
mov eax, dword [0x6baa04]
lea edx, [ebp + ebp*2]
push 0
push edx
mov edx, dword [0x509ae8]
mov ecx, dword [eax]
push 0
push edx
push 4
push eax
call dword [ecx + 0x7c]
push eax
push str.DrawPrimitiveVB
push str.ComFontBmpDrawString
call fcn.00408b70
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [0x4b046c]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
jl 0x40b3fe
mov ecx, dword [0x6baa04]
pop edi
pop esi
pop ebp
mov eax, dword [ecx]
push 0
push 0
push ecx
call dword [eax + 0x8c]
pop ebx
add esp, 0xdc
ret