Function at 0x427370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50af09
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x546190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x254], ebx
mov esi, ecx
mov dword [ebx + 4], edi
mov dword [ebp - 4], edi
mov dword [ebx], vtable.MaskedImage.0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov byte [ebp - 4], 4
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
call edx
cmp eax, 1
je 0x4274c5
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 6
je 0x4274c5
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 8
je 0x4274c5
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 5
je 0x427444
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 7
jne 0x42758a
push str.2d_sprite_alpha_masked
lea ecx, [ebp - 0x28]
call fcn.00401050
mov byte [ebp - 4], 8
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0042e550
lea esi, [ebp - 0x40]
call fcn.00405f00
mov byte [ebp - 4], 9
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 4]
call eax
mov esi, eax
test esi, esi
je 0x427494
inc dword [esi + 4]
mov dword [ebp - 0x250], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4274a5
inc dword [esi + 4]
mov ecx, dword [ebx + 0xc]
or edi, 0xffffffff
test ecx, ecx
je 0x4274bc
add dword [ecx + 4], edi
jne 0x4274bc
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [ebp - 4], 9
jmp 0x42754d
push 0x14
push str.sprite_straightalpha
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0xf
call fcn.00439740
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0042e550
lea esi, [ebp - 0x40]
call fcn.00405f00
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 4]
call eax
mov esi, eax
test esi, esi
je 0x427521
inc dword [esi + 4]
mov dword [ebp - 0x250], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x427532
inc dword [esi + 4]
mov ecx, dword [ebx + 0xc]
or edi, 0xffffffff
test ecx, ecx
je 0x427549
add dword [ecx + 4], edi
jne 0x427549
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [ebp - 4], 6
mov dword [ebx + 0xc], esi
test esi, esi
je 0x427563
add dword [esi + 4], edi
jne 0x427563
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edi, 0x10
cmp dword [ebp - 0x2c], edi
jl 0x42757c
mov ecx, dword [ebp - 0x40]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x14], edi
jl 0x42758a
mov edx, dword [ebp - 0x28]
push edx
call esi
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret