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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x570930]
xor eax, dword [esp + 0x7c]
cmp ecx, 0x1909
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov dword [esp + 0x88], eax
mov edi, edx
ja 0x4ebb45
je 0x4ebb2f
cmp ecx, 0x1908
jne 0x4eb350
mov eax, dword [esp + 0x90]
push 0x5611b4
push eax
call fcn.00525760
add esp, 8
test eax, eax
je 0x4eb32f
lea ebx, [eax + 1]
mov esi, ebx
movsx ecx, byte [esi]
push ecx
call fcn.00525be0
add esp, 4
test eax, eax
je 0x4eb252
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00525be0
add esp, 4
test eax, eax
jne 0x4eb240
lea edx, [esp + 0x48]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4eb260
push ebx
mov byte [esi], cl
call fcn.00525445
lea ecx, [esp + 0x4c]
push ecx
inc eax
push eax
push str._i_s
push ebx
call fcn.00525208
mov edx, dword [esp + 0xb0]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.004edf20
mov eax, dword [esp + 0x60]
add esp, 0x2c
test eax, eax
je 0x4eb32f
mov ecx, dword [esp + 0x94]
movzx edx, word [esp + 0x10]
mov si, word [esp + 0x14]
inc ecx
sar ecx, 1
cmp edx, ecx
jne 0x4eb2f7
movzx eax, si
lea ebx, [ebp + 1]
sar ebx, 1
cmp eax, ebx
jne 0x4eb2f7
imul eax, edx
mov edx, dword [esp + 0x34]
shl eax, 2
push eax
push edx
push edi
call fcn.00432540
add esp, 0xc
jmp 0x4eb350
movzx eax, si
push eax
push edx
inc ebp
sar ebp, 1
push ebp
push ecx
mov ecx, dword [esp + 0xa0]
push ecx
push str.WARNING:_custom_mipmap_image__s_should_have_dimensions__i_x__i_instead_of__i_x__i__refusing_to_load_n
push 2
call dword [0x16d8920]
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
add esp, 0x7c
jmp fcn.0052e7b9
mov edx, dword [0x16c3a44]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4eb366
mov eax, dword [esp + 0x94]
push eax
mov eax, ebp
mov esi, edi
call fcn.004eac90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
add esp, 0x7c
jmp fcn.0052e7b9
mov edx, dword [esp + 0x94]
cmp edx, 1
jne 0x4eb376
cmp ebp, edx
je 0x4eb350
lea ebx, [edx*4]
sar edx, 1
sar ebp, 1
test edx, edx
mov ecx, edi
mov esi, edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x44], ecx
je 0x4ebacd
test ebp, ebp
je 0x4ebacd
mov ecx, dword [0x16c3840]
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x14], eax
fld dword [esp + 0x14]
fcomp dword [0x568e64]
fnstsw ax
test ah, 0x41
jnp 0x4eb98f
fld dword [esp + 0x14]
fcomp dword [0x568e60]
fnstsw ax
test ah, 0x41
je 0x4eb98f
test ebp, ebp
fld dword [0x568e60]
fsub dword [esp + 0x14]
fmul dword [0x568ed0]
fstp dword [esp + 0x10]
jle 0x4ebab5
mov dword [esp + 0x38], ebp
jmp 0x4eb400
cmp edx, 4
mov dword [esp + 0x1c], 0
jl 0x4eb7e7
mov ebp, 3
movzx eax, byte [edi]
movzx edx, byte [ebx + edi]
movzx ecx, byte [ebx + edi + 4]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 4]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi], al
movzx eax, byte [edi + 1]
movzx edx, byte [ebx + edi + 5]
movzx ecx, byte [ebx + edi + 1]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 5]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 1], al
movzx eax, byte [edi + 2]
movzx edx, byte [ebx + edi + 6]
movzx ecx, byte [ebx + edi + 2]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 6]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 2], al
movzx eax, byte [edi + 3]
movzx edx, byte [ebx + edi + 7]
movzx ecx, byte [ebx + edi + 3]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 7]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 3], al
movzx eax, byte [edi + 8]
movzx edx, byte [ebx + edi + 8]
movzx ecx, byte [ebx + edi + 0xc]
add edi, 8
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 4]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
add esi, 4
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi], al
movzx eax, byte [edi + 1]
movzx edx, byte [ebx + edi + 5]
movzx ecx, byte [ebx + edi + 1]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 5]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 1], al
movzx eax, byte [edi + 2]
movzx edx, byte [ebx + edi + 6]
movzx ecx, byte [ebx + edi + 2]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 6]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 2], al
movzx eax, byte [edi + 3]
movzx edx, byte [ebx + edi + 7]
movzx ecx, byte [ebx + edi + 3]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 7]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 3], al
movzx eax, byte [edi + 8]
movzx edx, byte [ebx + edi + 8]
movzx ecx, byte [ebx + edi + 0xc]
add edi, 8
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 4]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
add esi, 4
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi], al
movzx eax, byte [edi + 1]
movzx edx, byte [ebx + edi + 5]
movzx ecx, byte [ebx + edi + 1]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 5]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 1], al
movzx eax, byte [edi + 2]
movzx edx, byte [ebx + edi + 6]
movzx ecx, byte [ebx + edi + 2]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 6]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 2], al
movzx eax, byte [edi + 3]
movzx edx, byte [ebx + edi + 7]
movzx ecx, byte [ebx + edi + 3]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 7]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 3], al
movzx eax, byte [edi + 8]
movzx edx, byte [ebx + edi + 8]
movzx ecx, byte [ebx + edi + 0xc]
add edi, 8
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 4]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
add esi, 4
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi], al
movzx eax, byte [edi + 1]
movzx edx, byte [ebx + edi + 5]
movzx ecx, byte [ebx + edi + 1]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 5]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 1], al
movzx eax, byte [edi + 2]
movzx edx, byte [ebx + edi + 6]
movzx ecx, byte [ebx + edi + 2]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 6]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 2], al
movzx eax, byte [edi + 3]
movzx edx, byte [ebx + edi + 7]
movzx ecx, byte [ebx + edi + 3]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [edi + 7]
add edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov edx, dword [esp + 0x1c]
mov byte [esi + 3], al
mov eax, dword [esp + 0x94]
add edx, 4
add ebp, 4
add esi, 4
add edi, 8
cmp ebp, eax
mov dword [esp + 0x1c], edx
jl 0x4eb416
mov edx, eax
cmp dword [esp + 0x1c], edx
jge 0x4eb966
mov eax, 5
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, 1
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, 6
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, 2
sub eax, ebx
mov dword [esp + 0x28], eax
mov eax, 7
sub eax, ebx
mov dword [esp + 0x34], eax
mov eax, 3
sub eax, ebx
mov ecx, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
sub ecx, ebx
sub edx, eax
lea ebp, [ebx + edi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], edx
jmp 0x4eb851
mov ecx, dword [esp + 0x3c]
movzx eax, byte [edi]
movzx edx, byte [ebp + 4]
movzx ecx, byte [ecx + ebp]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [ebp]
add edx, ecx
add eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov byte [esi], al
movzx eax, byte [ecx + ebp]
movzx ecx, byte [edx + ebp]
movzx edx, byte [ebp + 5]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [ebp + 1]
add edx, ecx
add eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov byte [esi + 1], al
movzx eax, byte [ecx + ebp]
movzx ecx, byte [edx + ebp]
movzx edx, byte [ebp + 6]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [ebp + 2]
add edx, ecx
add eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov byte [esi + 2], al
movzx eax, byte [ecx + ebp]
movzx ecx, byte [edx + ebp]
movzx edx, byte [ebp + 7]
mov dword [esp + 0x18], eax
add edx, eax
movzx eax, byte [ebp + 3]
add edx, ecx
add eax, edx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [esp + 0x10]
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
faddp st(1)
call fcn.00538be0
mov byte [esi + 3], al
mov eax, dword [esp + 0x1c]
add esi, 4
add edi, 8
add ebp, 8
dec eax
mov dword [esp + 0x1c], eax
jne 0x4eb84d
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x38]
add edi, ebx
dec eax
mov dword [esp + 0x38], eax
jne 0x4eb400
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
add esp, 0x7c
jmp fcn.0052e7b9
test ebp, ebp
jle 0x4ebab5
mov dword [esp + 0x1c], ebp
jmp 0x4eb9a0
test edx, edx
jle 0x4ebaa4
mov ecx, 5
sub ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, 6
sub ecx, ebx
mov dword [esp + 0x2c], ecx
mov ecx, 2
sub ecx, ebx
mov dword [esp + 0x28], ecx
mov ecx, 7
sub ecx, ebx
mov dword [esp + 0x34], ecx
mov ebp, 4
mov ecx, 3
sub ebp, ebx
sub ecx, ebx
lea eax, [ebx + edi]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
jmp 0x4eba00
movzx edx, byte [eax + 4]
movzx ecx, byte [eax + ebp]
add ecx, edx
movzx edx, byte [edi]
add ecx, edx
movzx edx, byte [eax]
add ecx, edx
sar ecx, 2
mov byte [esi], cl
mov ecx, dword [esp + 0x20]
movzx edx, byte [ecx + eax]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [ecx + eax]
add edx, ecx
movzx ecx, byte [eax + 5]
add edx, ecx
movzx ecx, byte [eax + 1]
add edx, ecx
sar edx, 2
mov byte [esi + 1], dl
mov edx, dword [esp + 0x28]
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x2c]
movzx edx, byte [edx + eax]
add ecx, edx
movzx edx, byte [eax + 6]
add ecx, edx
movzx edx, byte [eax + 2]
add ecx, edx
sar ecx, 2
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x30]
movzx edx, byte [ecx + eax]
mov ecx, dword [esp + 0x34]
movzx ecx, byte [ecx + eax]
add edx, ecx
movzx ecx, byte [eax + 7]
add edx, ecx
movzx ecx, byte [eax + 3]
add edx, ecx
mov ecx, dword [esp + 0x38]
sar edx, 2
mov byte [esi + 3], dl
add esi, 4
add edi, 8
add eax, 8
dec ecx
mov dword [esp + 0x38], ecx
jne 0x4eba00
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1c]
add edi, ebx
dec eax
mov dword [esp + 0x1c], eax
jne 0x4eb9a0
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
add esp, 0x7c
jmp fcn.0052e7b9
add edx, ebp
test edx, edx
jle 0x4ebb19
lea eax, [edi + 2]
movzx esi, byte [edi]
movzx ebx, byte [edi + 4]
add ebx, esi
sar ebx, 1
mov byte [eax - 2], bl
movzx esi, byte [edi + 1]
movzx ebx, byte [edi + 5]
add ebx, esi
sar ebx, 1
mov byte [eax - 1], bl
movzx esi, byte [edi + 2]
movzx ebx, byte [edi + 6]
add ebx, esi
sar ebx, 1
mov byte [eax], bl
movzx ebx, byte [edi + 7]
movzx esi, byte [edi + 3]
add ebx, esi
sar ebx, 1
mov byte [eax + 1], bl
add eax, 4
add edi, 8
dec edx
jne 0x4ebad6
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
add esp, 0x7c
jmp fcn.0052e7b9
mov edx, dword [esp + 0x94]
push edx
mov eax, ebp
mov ecx, edi
call fcn.004eb120
jmp 0x4eb34d
cmp ecx, 0x83f0
jb 0x4eb350
cmp ecx, 0x83f3
ja 0x4eb350
mov eax, dword [esp + 0x94]
mov esi, ebp
call fcn.004eaba0
mov ecx, dword [esp + 0x88]
add eax, edi
xor ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
jmp fcn.0052e7b9