Function at 0x4a22c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x515b70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
lea esi, [esp + 0x38]
mov edi, ecx
call fcn.00498bd0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
jne 0x4a232e
cmp edx, ebx
jne 0x4a232e
cmp esi, ebx
jne 0x4a232e
cmp eax, ebx
je 0x4a23c9
lea esi, [esp + 0x48]
mov ecx, edi
call fcn.004988a0
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x5c], ebx
jne 0x4a2381
sub esp, 0x1c
mov esi, esp
mov ecx, edi
mov dword [esp + 0x34], esp
call fcn.004987c0
push ecx
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.00498a40
add esp, 4
push eax
mov ecx, edi
call fcn.00498580
push eax
mov byte [esp + 0x94], 0
call fcn.00488f40
add esp, 0x24
jmp 0x4a23af
cmp dword [esp + 0x60], 8
mov esi, dword [esp + 0x4c]
jae 0x4a2390
lea esi, [esp + 0x4c]
mov ecx, edi
call fcn.00498980
push eax
push ecx
mov ecx, edi
call fcn.00498a40
add esp, 4
mov ecx, eax
mov edx, esi
call fcn.00488ea0
add esp, 4
mov esi, eax
cmp esi, ebx
jne 0x4a23d0
cmp dword [esp + 0x60], 8
jb 0x4a23c9
mov eax, dword [esp + 0x4c]
push eax
call fcn.004e7d7e
add esp, 4
xor eax, eax
jmp 0x4a2672
mov ebp, dword [esi + 4]
mov edi, dword [esi + 8]
add ebp, ebp
add ebp, ebp
imul edi, ebp
push edi
mov dword [esp + 0x20], ebp
call fcn.004e7330
mov ecx, dword [esi]
add esp, 4
push eax
push edi
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push edx
push eax
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
jle 0x4a2480
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jle 0x4a2473
mov edi, ebx
imul edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp byte [edi + eax], 0
jne 0x4a2467
cmp byte [edi + eax + 1], 0
jne 0x4a2467
cmp byte [edi + eax + 2], 0
jne 0x4a2467
cmp byte [edi + eax + 3], 0
jne 0x4a2467
lea ecx, [ebx + 1]
push ecx
lea edx, [ebp + 1]
push edx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x4a2467
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
add ebp, 1
add edi, 4
cmp ebp, dword [esp + 0x28]
jl 0x4a2425
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jl 0x4a2416
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jle 0x4a250b
lea esp, [esp]
mov eax, dword [esi + 4]
mov edi, eax
sub edi, dword [esp + 0x30]
cmp edi, eax
jge 0x4a2502
mov eax, ebx
imul eax, ebp
lea ebp, [eax + edi*4]
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x4a24f3
cmp byte [eax + ebp + 1], 0
jne 0x4a24f3
cmp byte [eax + ebp + 2], 0
jne 0x4a24f3
cmp byte [eax + ebp + 3], 0
jne 0x4a24f3
mov edx, dword [esp + 0x78]
mov ecx, edi
sub ecx, dword [esi + 4]
lea eax, [ecx + edx]
lea ecx, [ebx + 1]
push ecx
lea edx, [eax + 1]
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x4a24f3
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
add edi, 1
add ebp, 4
cmp edi, dword [esi + 4]
jl 0x4a24a5
mov ebp, dword [esp + 0x1c]
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jl 0x4a2490
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, dword [esp + 0x34]
cmp ebx, eax
jge 0x4a259f
mov eax, ebx
imul eax, ebp
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x28], edi
jle 0x4a2591
mov ebp, eax
nop
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x4a257d
cmp byte [eax + ebp + 1], 0
jne 0x4a257d
cmp byte [eax + ebp + 2], 0
jne 0x4a257d
cmp byte [eax + ebp + 3], 0
jne 0x4a257d
mov ecx, dword [esp + 0x7c]
mov eax, ebx
sub eax, dword [esi + 8]
add eax, ecx
lea edx, [eax + 1]
push edx
lea ecx, [edi + 1]
push ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x4a257d
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
add edi, 1
add ebp, 4
cmp edi, dword [esp + 0x28]
jl 0x4a2530
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ebx, 1
add eax, ebp
cmp ebx, dword [esi + 8]
mov dword [esp + 0x18], eax
jl 0x4a2525
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, dword [esp + 0x34]
cmp ebx, eax
jge 0x4a264d
mov ecx, ebx
imul ecx, ebp
mov dword [esp + 0x18], ecx
lea esp, [esp]
mov eax, dword [esi + 4]
mov edi, eax
sub edi, dword [esp + 0x30]
cmp edi, eax
jge 0x4a263b
lea ebp, [ecx + edi*4]
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x4a2628
cmp byte [eax + ebp + 1], 0
jne 0x4a2628
cmp byte [eax + ebp + 2], 0
jne 0x4a2628
cmp byte [eax + ebp + 3], 0
jne 0x4a2628
mov eax, dword [esp + 0x7c]
mov edx, ebx
sub edx, dword [esi + 8]
mov ecx, edi
sub ecx, dword [esi + 4]
add eax, edx
mov edx, dword [esp + 0x78]
add ecx, edx
lea edx, [eax + 1]
push edx
lea edx, [ecx + 1]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
je 0x4a2628
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
add edi, 1
add ebp, 4
cmp edi, dword [esi + 4]
jl 0x4a25d0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ebx, 1
add ecx, ebp
cmp ebx, dword [esi + 8]
mov dword [esp + 0x18], ecx
jl 0x4a25c0
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d6a
add esp, 4
cmp dword [esp + 0x60], 8
jb 0x4a266e
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x60
ret