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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0xb90
mov dword [ebp - 8], edi
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
shl eax, 4
add eax, dword [esi + 0x50]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
call dword [0xece4f8]
cmp dword [esi + 0x78], 0xff
je 0x4394a8
push 0xff
mov dword [esi + 0x78], 0xff
call dword [0xece514]
cmp dword [esi + 0x7c], 0x207
jne 0x4394c6
cmp dword [esi + 0x80], 0
jne 0x4394c6
cmp dword [esi + 0x84], 0xff
je 0x4394f3
push 0xff
push 0
push 0x207
mov dword [esi + 0x7c], 0x207
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece558]
push 0
push 0
push 0
push 0
call dword [0xece548]
push 0xb0
push dword [edi + 0x18]
push dword [esi + 0x38]
push 0
push 0x8a11
call dword [0xece4e4]
mov edx, dword [esi + 0x24]
xor ecx, ecx
test edx, edx
jle 0x439540
mov edi, dword [esi + 0x98]
mov eax, dword [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edi
je 0x43974f
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x439530
xor eax, eax
cmp dword [esi + 0x74], eax
je 0x439556
push eax
push 0xde1
mov dword [esi + 0x74], eax
call dword [0xece5a0]
test byte [esi + 0x40], 4
je 0x43959c
call dword [0xece510]
test eax, eax
je 0x439579
push str.tex_paint_tex
push eax
push str.Error__08x_after__s_n
call fcn.00437320
add esp, 0xc
test byte [esi + 0x40], 4
je 0x43959c
call dword [0xece510]
test eax, eax
je 0x43959c
push str.fill_simple
push eax
push str.Error__08x_after__s_n
call fcn.00437320
add esp, 0xc
push 0x8507
push 0x1e00
push 0x1e00
push 0x404
call dword [0xece5bc]
push 0x8508
push 0x1e00
push 0x1e00
push 0x405
call dword [0xece5bc]
push 0xb44
call dword [0xece540]
test ebx, ebx
jle 0x4395fa
mov edi, dword [ebp - 4]
push dword [edi + 4]
push dword [edi]
push 6
call dword [0xece490]
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x4395e2
mov ebx, dword [ebp - 0x10]
push 0xb44
call dword [0xece4f8]
push 1
push 1
push 1
push 1
call dword [0xece548]
mov edi, dword [ebp - 8]
mov ecx, esi
mov edx, dword [esi + 0x3c]
push dword [edi + 4]
add edx, dword [edi + 0x18]
call fcn.00439390
add esp, 4
test byte [esi + 0x40], 4
je 0x43964c
call dword [0xece510]
test eax, eax
je 0x43964c
push str.fill_fill
push eax
push str.Error__08x_after__s_n
call fcn.00437320
add esp, 0xc
test byte [esi + 0x40], 1
je 0x4396d8
cmp dword [esi + 0x7c], 0x202
jne 0x439674
cmp dword [esi + 0x80], 0
jne 0x439674
cmp dword [esi + 0x84], 0xff
je 0x4396a1
push 0xff
push 0
push 0x202
mov dword [esi + 0x7c], 0x202
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece558]
push 0x1e00
push 0x1e00
push 0x1e00
call dword [0xece51c]
test ebx, ebx
jle 0x4396d8
mov edi, dword [ebp - 4]
add edi, 8
push dword [edi + 4]
push dword [edi]
push 5
call dword [0xece490]
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x4396c0
mov edi, dword [ebp - 8]
cmp dword [esi + 0x7c], 0x205
jne 0x4396f6
cmp dword [esi + 0x80], 0
jne 0x4396f6
cmp dword [esi + 0x84], 0xff
je 0x439723
push 0xff
push 0
push 0x205
mov dword [esi + 0x7c], 0x205
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece558]
push 0
push 0
push 0
call dword [0xece51c]
push dword [edi + 0x14]
push dword [edi + 0x10]
push 5
call dword [0xece490]
push 0xb90
call dword [0xece540]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x439540
mov eax, dword [eax + 4]
jmp 0x439542