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

Disassembly:
push 0xffffffffffffffff
push 0x59d628
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [esp + 0x58]
test eax, eax
jl 0x4e6eb9
mov edx, dword [esp + 0x54]
cmp eax, dword [edx + 0x90]
jge 0x4e6eb9
lea ecx, [eax*4]
mov eax, dword [edx + 0x8c]
add eax, ecx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402110
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], ebp
mov dword [esp + 0x4c], 0
cmp dword [ebp - 0xc], 0
je 0x4e70b4
cmp dword [esp + 0x5c], 0
je 0x4e6ed9
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
cmp edx, dword [eax + 0x7c]
jge 0x4e6eb9
mov ecx, dword [eax + 0x78]
add edx, edx
add edx, edx
add ecx, edx
mov ecx, dword [ecx]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x7c]
mov dword [esp + 0x5c], edx
lea edx, [ecx - 1]
mov ecx, dword [esp + 0x58]
cmp ecx, edx
jge 0x4e6ebe
add ecx, 1
js 0x4e6eb9
cmp ecx, dword [eax + 0x7c]
jge 0x4e6eb9
mov eax, dword [eax + 0x78]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
sub eax, dword [esp + 0x54]
jmp 0x4e6ecf
call fcn.00555520
cmp ecx, dword [eax + 0x7c]
jge 0x4e6eb9
mov ecx, dword [eax + 0x78]
add ecx, dword [esp + 0x5c]
mov eax, dword [eax + 0x70]
sub eax, dword [ecx]
cmp ebx, dword [esp + 0x54]
mov dword [esp + 0x58], eax
jg 0x4e6efe
mov edx, dword [edi]
mov eax, dword [0x63c5ac]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
push 0x21
push esi
push eax
mov eax, dword [edx + 0x68]
push ebp
mov ecx, edi
call eax
jmp 0x4e70b4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3c], ecx
push 0x420
mov dword [esp + 0x38], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0xc]
push eax
push ebp
mov ecx, edi
call edx
xor ecx, ecx
mov eax, vtable.CRgn.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
sub ebx, dword [esp + 0x54]
mov byte [esp + 0x4c], 2
test ebx, ebx
mov dword [esp + 0x54], ebx
fild dword [esp + 0x54]
jge 0x4e6f63
fadd qword [0x606848]
mov eax, dword [esp + 0x58]
fild dword [esp + 0x58]
test eax, eax
jge 0x4e6f75
fadd qword [0x606848]
mov ecx, dword [esp + 0x38]
fdivp st(1)
mov edx, dword [esp + 0x30]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fnstcw word [esp + 0x58]
fmulp st(1)
movzx eax, word [esp + 0x58]
or eax, 0xc00
mov dword [esp + 0x54], eax
mov eax, edx
sub eax, dword [esi]
fldcw word [esp + 0x54]
sub eax, ecx
add eax, dword [esi + 8]
lea ecx, [esp + 0x24]
fistp qword [esp + 0x24]
cdq
mov ebx, dword [esp + 0x24]
sub eax, edx
mov edx, dword [edi + 8]
push ecx
fldcw word [esp + 0x5c]
sar eax, 1
push edx
add ebx, eax
call dword [sym.imp.GDI32.dll_GetViewportOrgEx]
mov edx, dword [esi]
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x28]
lea ecx, [edx + ebx]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.0055b82d
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x28]
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [esi + 8]
push eax
add edx, ebx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.0055b82d
push 5
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0055b324
mov edx, dword [edi]
mov eax, dword [0x63c5b0]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
push 0x21
push esi
push eax
mov eax, dword [edx + 0x68]
push ebp
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [0x63c5ac]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
push 5
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0055b324
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
push 0x21
push esi
push eax
mov eax, dword [edx + 0x68]
push ebp
mov ecx, edi
call eax
push 0
mov ecx, edi
call fcn.0055b22f
mov byte [esp + 0x4c], 1
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0055b880
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.0055b880
lea eax, [ebp - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e70d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc