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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x6feae4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x47897c
test ecx, ecx
je 0x47897c
cmp dword [ebp + 0x18], 0
je 0x47897c
mov eax, dword [edi + 0x28]
push 1
push edi
mov esi, dword [eax]
mov eax, dword [edi]
call dword [eax + 0xa8]
push eax
push dword [edi + 0x28]
call dword [esi + 0x2c]
mov ebx, eax
test ebx, ebx
je 0x47897c
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x5c]
mov ecx, dword [edi + 0xc]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x70], 0
push dword [edi + 0x20]
mov dword [esp + 0x70], 0
push dword [edi + 0x1c]
mov dword [esp + 0x70], 0
push dword [edi + 0x18]
mov dword [esp + 0x70], 0
push dword [edi + 0x14]
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
call fcn.0046ad30
mov ecx, dword [edi + 0x3c]
add esp, 0x18
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
add eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x48]
add eax, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x47854a
mov eax, dword [ebx]
push ebx
call dword [eax + 0x50]
mov ecx, dword [ebx]
mov esi, eax
push ebx
call dword [ecx + 0x4c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
cmp dword [edi + 0x78], 8
lea esi, [edi + 0x64]
mov eax, esi
jb 0x478557
mov eax, dword [esi]
push str.normal
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x478606
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
sub ecx, eax
sub esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
cmp ecx, esi
jg 0x4785d6
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, edx
sub eax, edi
cmp dword [esp + 0x14], eax
jg 0x4785d2
push dword [ebp + 0x18]
mov edx, dword [esp + 0x60]
push edi
push dword [esp + 0x54]
push ebx
push dword [esp + 0x24]
push ecx
push dword [esp + 0x78]
mov ecx, dword [esp + 0x28]
call fcn.0048e110
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x5c]
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
sub edx, edi
push edi
push dword [esp + 0x54]
push ebx
push edx
push esi
push dword [esp + 0x78]
mov edx, eax
call fcn.0048e110
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x478610
mov eax, dword [esi]
push str.tile
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4787c0
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub esi, eax
mov edi, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
sub ecx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
sub edi, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edi
call dword [eax + 0x48]
test eax, eax
je 0x47897c
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
test eax, eax
je 0x47897c
test edi, edi
jle 0x47897c
cmp dword [esp + 0x24], 0
jle 0x47897c
cmp dword [esp + 0x20], 0
jle 0x47897c
test esi, esi
jle 0x47897c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx]
mov edi, eax
push ebx
mov dword [esp + 0x20], edi
call dword [ecx + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x18]
mov byte [esp + 0x12], al
mov eax, ecx
cdq
idiv dword [esp + 0x20]
mov word [esp + 0x10], 0
mov byte [esp + 0x13], 1
lea ebx, [eax + 1]
mov eax, dword [esp + 0x24]
cdq
idiv esi
mov dword [esp + 0x18], ebx
inc eax
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x47879a
mov edx, dword [esp + 0x14]
mov edi, eax
mov esi, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x20]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x40], eax
mov ebx, eax
cmovge ebx, ecx
test edi, edi
jle 0x478789
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x10], eax
sub ebx, edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x34]
push esi
add edi, ecx
cmp edi, dword [esp + 0x14]
mov eax, edi
cmovge eax, dword [esp + 0x14]
sub eax, ecx
push eax
push ebx
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x30]
push eax
push ebx
push ecx
push edx
push dword [esp + 0x34]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
sub dword [esp + 0x28], 1
mov ecx, edi
mov edx, dword [esp + 0x14]
jne 0x478740
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
sub dword [esp + 0x18], 1
mov edx, eax
mov dword [esp + 0x14], edx
jne 0x478717
mov edi, dword [esp + 0x1c]
push dword [esp + 0x48]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4787ca
mov eax, dword [esi]
push str.stretch
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47882d
push dword [ebp + 0x18]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
sub eax, edx
push eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x74]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x80]
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0048e1c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x478837
mov eax, dword [esi]
push str.stretchvert
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4788a0
push dword [ebp + 0x18]
mov edx, dword [esp + 0x54]
push dword [edi + 0x38]
mov eax, dword [esp + 0x60]
push dword [edi + 0x34]
mov ecx, dword [esp + 0x58]
sub eax, edx
push eax
mov eax, dword [esp + 0x64]
sub eax, ecx
push eax
mov eax, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x7c]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x88]
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0048e290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4788aa
mov eax, dword [esi]
push str.stretchhorz
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x478913
push dword [ebp + 0x18]
mov edx, dword [esp + 0x54]
push dword [edi + 0x30]
mov eax, dword [esp + 0x60]
push dword [edi + 0x2c]
mov ecx, dword [esp + 0x58]
sub eax, edx
push eax
mov eax, dword [esp + 0x64]
sub eax, ecx
push eax
mov eax, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x7c]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x88]
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0048e470
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x14], 8
jb 0x47891b
mov esi, dword [esi]
push str.stretchpartall
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47897c
push dword [ebp + 0x18]
mov edx, dword [esp + 0x54]
push dword [edi + 0x38]
mov eax, dword [esp + 0x60]
push dword [edi + 0x34]
mov ecx, dword [esp + 0x58]
sub eax, edx
push dword [edi + 0x30]
push dword [edi + 0x2c]
push eax
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
mov eax, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x84]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x90]
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0048e650
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x14