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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
mov ebx, eax
push esi
mov edi, ebx
call fcn.004bad50
mov edi, dword [esp + 0xa8]
mov ebp, eax
mov eax, dword [ebp + edi*4 + 4]
test eax, eax
mov dword [esp + 0x78], ebp
je 0x4bb4c7
mov ecx, dword [eax]
cmp ecx, dword [esp + 0xac]
jne 0x4bb4c3
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0xb0]
jne 0x4bb4c3
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esp + 0xb4]
jne 0x4bb4c3
mov edx, dword [eax + 0x10]
cmp edx, dword [esp + 0xb8]
je 0x4bbc52
test eax, eax
jne 0x4bb4d9
push 0x14
call fcn.004a2340
mov dword [ebp + edi*4 + 4], eax
mov dword [eax + 8], 0
mov eax, dword [ebp + edi*4 + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4bb4f5
push eax
call fcn.004a23a0
mov ecx, dword [ebp + edi*4 + 4]
mov dword [ecx + 8], 0
cmp dword [esi + 0x20], 0
jne 0x4bb500
call fcn.004bb410
cmp dword [esi + 0x18], 0
jne 0x4bb510
cmp dword [esi + 0x1c], 0
je 0x4bbc1b
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [esp + 0x9c], esi
je 0x4bbc1b
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x48], ecx
je 0x4bbc12
cmp byte [ebp + 0x11], 0
mov esi, dword [esp + 0xa4]
jne 0x4bb55c
mov edx, dword [esi + 0x18]
mov eax, ebx
call fcn.004bade0
mov byte [ebp + 0x10], al
mov byte [ebp + 0x11], 1
cmp byte [ebp + 0x10], 0
je 0x4bb567
mov esi, dword [esi + 0x18]
jmp 0x4bb56a
mov esi, dword [esi + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call edx
test eax, eax
jl 0x4bbc00
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x70]
push eax
push 0
push ecx
push edx
push esi
mov eax, ebx
call fcn.004bac10
test eax, eax
mov dword [esp + 0x94], eax
je 0x4bbbf9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
push 0xffffff
push ecx
push edx
push esi
mov eax, ebx
call fcn.004bac10
test eax, eax
mov dword [esp + 0x8c], eax
je 0x4bbbeb
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
mov edx, esi
imul edx, edi
add edx, edx
add edx, edx
push edx
call fcn.004a2340
mov ecx, dword [esp + 0xa8]
mov edx, dword [ebp + ecx*4 + 4]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xb4]
movzx ecx, al
movzx edx, ah
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x58], eax
xor eax, eax
shr ebx, 0x18
and ebx, 0xf
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], eax
je 0x4bb685
mov edx, ebx
mov ebx, dword [esp + 0xa4]
lea ecx, [esp + 0x84]
mov eax, ebx
call fcn.004baef0
test eax, eax
je 0x4bb685
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x68]
push edx
push edi
push esi
push eax
push ecx
push ebx
call fcn.004bb1a0
test eax, eax
je 0x4bb685
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], eax
cmp byte [0x58b0ae], 0
mov ebx, dword [esp + 0x1c]
mov ebp, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebp
jne 0x4bb6b4
cmp esi, ebx
jl 0x4bb6b4
mov eax, dword [esp + 0x20]
cmp edi, eax
jl 0x4bb6b4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], eax
mov ebp, eax
mov esi, ebx
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0xac]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, edi
mov edi, dword [esp + 0xa8]
mov ecx, dword [ecx + edi*4 + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xb0]
sub edx, ebp
test ecx, ecx
mov dword [esp + 0x88], eax
jle 0x4bbbbe
neg edx
mov edi, edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x74], ecx
lea ebx, [ebx]
cmp dword [esp + 0xac], 0
jle 0x4bbbac
mov edx, dword [esp + 0xac]
mov ecx, eax
neg ecx
mov dword [esp + 0x7c], edx
lea ecx, [ecx]
mov eax, ecx
imul eax, ebx
cdq
idiv esi
add ecx, 1
mov dword [esp + 0x90], ecx
mov dword [esp + 0x3c], eax
mov eax, ecx
imul eax, ebx
cdq
idiv esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebp
mov esi, eax
lea eax, [edi + 1]
imul eax, ecx
cdq
idiv ebp
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], esi
mov ecx, eax
cmp esi, ecx
mov dword [esp + 0x28], ecx
jge 0x4bb88f
mov eax, dword [esp + 0x3c]
mov ecx, esi
imul ecx, ebx
mov ebx, dword [esp + 0x6c]
add ecx, eax
lea edx, [ebx + ecx*4]
mov ecx, dword [esp + 0x70]
sub ecx, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x98], ecx
jmp 0x4bb7c7
mov ecx, dword [esp + 0x98]
add ecx, edx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
jge 0x4bb867
test eax, eax
jl 0x4bb838
cmp dword [esp + 0x30], 0
jl 0x4bb838
cmp eax, dword [esp + 0x1c]
jge 0x4bb838
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x30], eax
jge 0x4bb834
movzx eax, byte [ecx]
add dword [esp + 0x2c], eax
movzx eax, byte [ecx + 1]
add dword [esp + 0x14], eax
add ecx, 1
movzx eax, byte [ecx + 1]
add dword [esp + 0x10], eax
movzx eax, byte [edx]
add ecx, 1
add edi, eax
movzx eax, byte [edx + 1]
add dword [esp + 0x18], eax
add edx, 1
movzx eax, byte [edx + 1]
add edx, 1
add ebp, eax
mov eax, dword [esp + 0x38]
add ecx, 2
add edx, 2
jmp 0x4bb852
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], 0xff
add ecx, 4
add edi, 0xff
add ebp, 0xff
add edx, 4
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
jl 0x4bb7d7
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add dword [esp + 0x30], 1
lea ecx, [ebx*4]
add edx, ecx
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jl 0x4bb7c0
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x3c]
je 0x4bb8d8
sub ecx, esi
je 0x4bb8d8
imul ecx, eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
mov ebx, eax
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov esi, eax
mov eax, edi
cdq
idiv ecx
mov ecx, eax
jmp 0x4bb940
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp eax, ecx
jl 0x4bb92d
cmp esi, ecx
jl 0x4bb92d
cmp eax, ebx
jge 0x4bb92d
cmp esi, dword [esp + 0x20]
jge 0x4bb92d
mov ecx, dword [esp + 0x70]
imul esi, ebx
mov edx, dword [esp + 0x6c]
add esi, eax
add esi, esi
add esi, esi
movzx ebx, byte [esi + ecx]
lea eax, [esi + ecx]
movzx ecx, byte [eax + 1]
add eax, 1
movzx eax, byte [eax + 1]
add edx, esi
movzx esi, byte [edx + 1]
movzx ebp, byte [edx + 2]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx]
add edx, 1
mov dword [esp + 0x10], eax
jmp 0x4bb940
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov ecx, 0xff
xor ebx, ebx
mov esi, ecx
mov ebp, ecx
lea edx, [ecx + esi]
add edx, ebp
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
add edx, ebx
add edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, 0x55555556
imul edx
mov eax, edx
sub ecx, ebx
imul ecx, dword [esp + 0x58]
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
sub edi, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, ebx
mov ebx, dword [esp + 0x14]
sub esi, ebx
imul esi, dword [esp + 0x5c]
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, ebx
mov ebx, dword [esp + 0x10]
sub ebp, ebx
imul ebp, dword [esp + 0x50]
mov eax, 0x80808081
imul ebp
mov eax, dword [esp + 0x40]
add edx, ebp
sar edx, 7
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
add edi, 0xff
add ebp, ebx
test eax, eax
je 0x4bbaea
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
add eax, 1
add eax, 1
add eax, 1
mov dword [esp + 0x14], edx
movzx edx, byte [eax - 1]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
add eax, 1
mov dword [esp + 0x10], edx
movzx edx, byte [eax - 1]
mov dword [esp + 0x34], edx
movzx edx, byte [eax]
add eax, 1
add eax, 1
mov dword [esp + 0x18], edx
movzx edx, byte [eax - 1]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
add edx, eax
add edx, dword [esp + 0x24]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
add edx, ebx
add edx, dword [esp + 0x10]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x28]
sub eax, edx
add eax, 0xff
cmp eax, edi
mov dword [esp + 0x2c], ebx
jle 0x4bba7a
mov edi, eax
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub eax, ebx
imul eax, ecx
mov ecx, eax
mov eax, 0x80808081
imul ecx
mov eax, dword [esp + 0x18]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, ebx
mov ebx, dword [esp + 0x14]
sub eax, ebx
imul eax, esi
mov esi, eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebx
mov ebx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x24]
sub eax, ebx
imul eax, ebp
mov ebp, eax
mov eax, 0x80808081
imul ebp
add edx, ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebx
mov ebp, eax
sub ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0xb8]
sub esi, dword [esp + 0x5c]
imul ecx, ebx
imul edi, ebx
mov eax, 0x80808081
imul esi, ebx
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
sub ebp, dword [esp + 0x50]
shr ecx, 0x1f
add edx, ecx
imul ebp, ebx
add dl, byte [esp + 0x58]
mov ecx, dword [esp + 0x80]
mov byte [ecx], dl
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x5c]
add ecx, 1
mov byte [ecx], al
mov eax, 0x80808081
imul ebp
add edx, ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x50]
add ecx, 1
mov byte [ecx], al
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov eax, 0x80808081
imul edi
add edx, edi
mov edi, dword [esp + 0x54]
sar edx, 7
mov eax, edx
add ecx, 1
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov ebx, dword [esp + 0x1c]
add ecx, 1
sub dword [esp + 0x7c], 1
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x90]
jne 0x4bb730
mov eax, dword [esp + 0x88]
add edi, 1
sub dword [esp + 0x74], 1
mov dword [esp + 0x54], edi
jne 0x4bb710
cmp dword [esp + 0x40], 0
je 0x4bbbd9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004a23a0
mov edx, dword [esp + 0x64]
push edx
call fcn.004a23a0
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x94]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x9c]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + edi*4 + 4]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + edi*4 + 4]
mov eax, dword [esp + 0xb8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + edi*4 + 4]
mov edx, dword [esp + 0xac]
mov dword [ecx], edx
mov eax, dword [ebp + edi*4 + 4]
mov ecx, dword [esp + 0xb0]
mov dword [eax + 4], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x90
ret 0x18