Function at 0x439540
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 [0xece540]
cmp dword [esi + 0x78], 0xff
je 0x439588
push 0xff
mov dword [esi + 0x78], 0xff
call dword [0xece55c]
cmp dword [esi + 0x7c], 0x207
jne 0x4395a6
cmp dword [esi + 0x80], 0
jne 0x4395a6
cmp dword [esi + 0x84], 0xff
je 0x4395d3
push 0xff
push 0
push 0x207
mov dword [esi + 0x7c], 0x207
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece5a0]
push 0
push 0
push 0
push 0
call dword [0xece590]
push 0xb0
push dword [edi + 0x18]
push dword [esi + 0x38]
push 0
push 0x8a11
call dword [0xece52c]
mov edx, dword [esi + 0x24]
xor ecx, ecx
test edx, edx
jle 0x439620
mov edi, dword [esi + 0x98]
mov eax, dword [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edi
je 0x43982f
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x439610
xor eax, eax
cmp dword [esi + 0x74], eax
je 0x439636
push eax
push 0xde1
mov dword [esi + 0x74], eax
call dword [0xece5e8]
test byte [esi + 0x40], 4
je 0x43967c
call dword [0xece558]
test eax, eax
je 0x439659
push str.tex_paint_tex
push eax
push str.Error__08x_after__s_n
call fcn.00437440
add esp, 0xc
test byte [esi + 0x40], 4
je 0x43967c
call dword [0xece558]
test eax, eax
je 0x43967c
push str.fill_simple
push eax
push str.Error__08x_after__s_n
call fcn.00437440
add esp, 0xc
push 0x8507
push 0x1e00
push 0x1e00
push 0x404
call dword [0xece604]
push 0x8508
push 0x1e00
push 0x1e00
push 0x405
call dword [0xece604]
push 0xb44
call dword [0xece588]
test ebx, ebx
jle 0x4396da
mov edi, dword [ebp - 4]
push dword [edi + 4]
push dword [edi]
push 6
call dword [0xece4d8]
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x4396c2
mov ebx, dword [ebp - 0x10]
push 0xb44
call dword [0xece540]
push 1
push 1
push 1
push 1
call dword [0xece590]
mov edi, dword [ebp - 8]
mov ecx, esi
mov edx, dword [esi + 0x3c]
push dword [edi + 4]
add edx, dword [edi + 0x18]
call fcn.00439470
add esp, 4
test byte [esi + 0x40], 4
je 0x43972c
call dword [0xece558]
test eax, eax
je 0x43972c
push str.fill_fill
push eax
push str.Error__08x_after__s_n
call fcn.00437440
add esp, 0xc
test byte [esi + 0x40], 1
je 0x4397b8
cmp dword [esi + 0x7c], 0x202
jne 0x439754
cmp dword [esi + 0x80], 0
jne 0x439754
cmp dword [esi + 0x84], 0xff
je 0x439781
push 0xff
push 0
push 0x202
mov dword [esi + 0x7c], 0x202
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece5a0]
push 0x1e00
push 0x1e00
push 0x1e00
call dword [0xece564]
test ebx, ebx
jle 0x4397b8
mov edi, dword [ebp - 4]
add edi, 8
push dword [edi + 4]
push dword [edi]
push 5
call dword [0xece4d8]
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x4397a0
mov edi, dword [ebp - 8]
cmp dword [esi + 0x7c], 0x205
jne 0x4397d6
cmp dword [esi + 0x80], 0
jne 0x4397d6
cmp dword [esi + 0x84], 0xff
je 0x439803
push 0xff
push 0
push 0x205
mov dword [esi + 0x7c], 0x205
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xff
call dword [0xece5a0]
push 0
push 0
push 0
call dword [0xece564]
push dword [edi + 0x14]
push dword [edi + 0x10]
push 5
call dword [0xece4d8]
push 0xb90
call dword [0xece588]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x439620
mov eax, dword [eax + 4]
jmp 0x439622