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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x58]
push edi
mov dword [esp + 0x1c], ebx
mov edx, dword [eax + 0x5f37]
mov ecx, dword [eax + 0x5e2c]
mov dword [esp + 0x24], ecx
cmp dword [edx + 0xa0], 2
jne 0x461272
mov word [esp + 0x30], 0x7ff
mov word [esp + 0x32], 0xf81f
jmp 0x461280
mov word [esp + 0x30], 0x3ff
mov word [esp + 0x32], 0x7c1f
mov ecx, dword [ebx + 0x68]
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00409ad0
test al, al
je 0x461629
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x58]
add eax, 0x5f93
mov edx, dword [ecx + 0x5c]
push eax
mov dword [esp + 0x58], edx
call dword [0x4f011c]
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 0x5e28]
test ecx, ecx
jle 0x4615ff
lea ecx, [ebx + 0x78]
mov dword [esp + 0x2c], 0x5e30
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + eax]
xor edx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 0x68]
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x4615cf
lea ecx, [eax + 0xa0]
mov dword [esp + 0x4c], ecx
mov cl, byte [eax + edx + 0x8a0]
test cl, cl
jne 0x4615b3
test edx, edx
jl 0x461329
cmp edx, 0x200
jge 0x461329
mov ecx, dword [esp + 0x4c]
mov esi, dword [ecx]
mov dword [esp + 0x18], esi
jmp 0x461335
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
cmp word [esi + 0x36b], 0x38
je 0x4615b3
lea ecx, [esi + 0x129]
mov ebp, dword [esi + 0x129]
cmp ebp, 0xffffffff
mov edi, dword [ecx + 4]
mov dword [esp + 0x68], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x70], ecx
je 0x4615b3
mov edx, dword [ebx + 0x58]
mov ecx, dword [edx + 0x5f33]
test ecx, ecx
je 0x461385
mov ecx, eax
call fcn.00499250
test al, al
jne 0x46143d
add esi, 0xf9
lea edx, [esp + 0x74]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [ebx + 0x60]
push eax
push edx
call fcn.004afa10
mov esi, dword [eax]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx + 0x58]
push eax
push ebx
push esi
call fcn.004d1f40
test al, al
je 0x4615a7
mov ecx, dword [esp + 0x18]
call fcn.004be110
test eax, eax
jle 0x4613f1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push ebx
mov ecx, dword [eax + 0x58]
push esi
call fcn.004d2080
test al, al
je 0x4615a7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x90]
cmp eax, 0x40000000
je 0x4615a7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp edx, ecx
je 0x461439
test eax, eax
jle 0x461439
mov edx, ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.00498cb0
cmp eax, 1
jne 0x4615a7
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0xa2]
mov eax, ebp
cdq
idiv esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebx + 0xa6]
call fcn.004ecc00
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
cdq
idiv esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebx + 0xa6]
call fcn.004ecc00
sub edi, ebp
mov edx, eax
mov ecx, 2
mov dword [esp + 0x60], edx
lea eax, [edi + 1]
mov dword [esp + 0x38], ecx
cmp eax, ecx
jl 0x461495
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
sub eax, edi
mov dword [esp + 0x50], ecx
inc eax
cmp eax, ecx
jl 0x4614ac
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
xor esi, esi
test eax, eax
jle 0x4615ab
mov eax, edx
mov ecx, dword [esp + 0x38]
imul eax, dword [esp + 0x54]
mov dword [esp + 0x48], eax
test ecx, ecx
jle 0x46158e
mov edi, dword [esp + 0x5c]
lea ebp, [esi + edx]
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x461572
cmp edi, dword [ebx + 0x8a]
jge 0x461572
test ebp, ebp
jl 0x461572
cmp ebp, dword [ebx + 0x8e]
jge 0x461572
mov eax, dword [esp + 0x18]
cmp word [eax + 0x36b], 0x39
jne 0x461520
mov ecx, dword [eax + 0x18ac]
test ecx, ecx
jle 0x46151a
mov ecx, dword [esp + 0x30]
jmp 0x46155f
mov ecx, dword [esp + 0x32]
jmp 0x46155f
mov cl, byte [eax + 0x188e]
test cl, cl
je 0x46152e
xor ecx, ecx
jmp 0x46155f
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0x20]
cmp edx, dword [ecx + 0x5e2c]
jne 0x461558
mov ecx, dword [ebx + 0x74]
push eax
call fcn.00451900
neg al
sbb eax, eax
and eax, 0xf81f
add eax, 0x7e0
mov ecx, eax
jmp 0x46155f
mov eax, dword [esp + 0x28]
mov cx, word [eax]
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
add eax, edi
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x14]
inc edi
dec eax
mov dword [esp + 0x14], eax
jne 0x4614dc
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
inc esi
add eax, ebp
cmp esi, edi
mov dword [esp + 0x48], eax
jl 0x4614c9
jmp 0x4615ab
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
inc edx
add esi, 4
cmp edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], esi
jl 0x461302
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edx, dword [eax + 0x5e28]
inc ecx
add edi, 4
add esi, 2
cmp ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
jl 0x4612d8
mov eax, dword [ebx + 0x58]
add eax, 0x5f93
push eax
call dword [0x4f0120]
lea ecx, [esp + 0x40]
push 0
push ecx
mov ecx, dword [ebx + 0x68]
mov dword [esp + 0x48], 0
call fcn.00409c30
test al, al
jne 0x46164b
push str.DrawBackToFront__:_Error_occurs.
push ebx
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret