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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x562940]
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 0x4e0395
je 0x4e037f
cmp ecx, 0x1908
jne 0x4dfba0
mov eax, dword [esp + 0x90]
push 0x553ec4
push eax
call fcn.0051a2a0
add esp, 8
test eax, eax
je 0x4dfb7f
lea ebx, [eax + 1]
mov esi, ebx
movsx ecx, byte [esi]
push ecx
call fcn.0051a720
add esp, 4
test eax, eax
je 0x4dfaa2
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.0051a720
add esp, 4
test eax, eax
jne 0x4dfa90
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 0x4dfab0
push ebx
mov byte [esi], cl
call fcn.00519f85
lea ecx, [esp + 0x4c]
push ecx
inc eax
push eax
push str._i_s
push ebx
call fcn.00519d48
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.004e27b0
mov eax, dword [esp + 0x60]
add esp, 0x2c
test eax, eax
je 0x4dfb7f
mov ecx, dword [esp + 0x94]
movzx edx, word [esp + 0x10]
mov si, word [esp + 0x14]
inc ecx
sar ecx, 1
cmp edx, ecx
jne 0x4dfb47
movzx eax, si
lea ebx, [ebp + 1]
sar ebx, 1
cmp eax, ebx
jne 0x4dfb47
imul eax, edx
mov edx, dword [esp + 0x34]
shl eax, 2
push eax
push edx
push edi
call fcn.0042b090
add esp, 0xc
jmp 0x4dfba0
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 [0x15485a0]
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.00523319
mov edx, dword [0x15336c4]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4dfbb6
mov eax, dword [esp + 0x94]
push eax
mov eax, ebp
mov esi, edi
call fcn.004df4e0
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.00523319
mov edx, dword [esp + 0x94]
cmp edx, 1
jne 0x4dfbc6
cmp ebp, edx
je 0x4dfba0
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 0x4e031d
test ebp, ebp
je 0x4e031d
mov ecx, dword [0x15334c0]
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x14], eax
fld dword [esp + 0x14]
fcomp dword [0x55a4ac]
fnstsw ax
test ah, 0x41
jnp 0x4e01df
fld dword [esp + 0x14]
fcomp dword [0x55a4a8]
fnstsw ax
test ah, 0x41
je 0x4e01df
test ebp, ebp
fld dword [0x55a4a8]
fsub dword [esp + 0x14]
fmul dword [0x55a514]
fstp dword [esp + 0x10]
jle 0x4e0305
mov dword [esp + 0x38], ebp
jmp 0x4dfc50
cmp edx, 4
mov dword [esp + 0x1c], 0
jl 0x4e0037
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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 0x4dfc66
mov edx, eax
cmp dword [esp + 0x1c], edx
jge 0x4e01b6
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 0x4e00a1
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.0052d858
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.0052d858
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.0052d858
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.0052d858
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 0x4e009d
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x38]
add edi, ebx
dec eax
mov dword [esp + 0x38], eax
jne 0x4dfc50
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.00523319
test ebp, ebp
jle 0x4e0305
mov dword [esp + 0x1c], ebp
jmp 0x4e01f0
test edx, edx
jle 0x4e02f4
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 0x4e0250
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 0x4e0250
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x1c]
add edi, ebx
dec eax
mov dword [esp + 0x1c], eax
jne 0x4e01f0
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.00523319
add edx, ebp
test edx, edx
jle 0x4e0369
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 0x4e0326
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.00523319
mov edx, dword [esp + 0x94]
push edx
mov eax, ebp
mov ecx, edi
call fcn.004df970
jmp 0x4dfb9d
cmp ecx, 0x83f0
jb 0x4dfba0
cmp ecx, 0x83f3
ja 0x4dfba0
mov eax, dword [esp + 0x94]
mov esi, ebp
call fcn.004df3f0
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.00523319