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

Disassembly:
sub esp, 0x8f0
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x8ec], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
test esi, esi
je 0x4053bf
test ebp, ebp
je 0x4053bf
xor ebx, ebx
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4053bf
push 0x7c
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0045e8a0
add esp, 0xc
lea edx, [esp + 0x38]
mov ecx, ebp
push 0x7c
call fcn.004010b0
pop ecx
test eax, eax
je 0x4053bf
mov edx, 0x485608
mov ecx, esi
call fcn.00413c92
mov edx, str.Header_Size:_t
mov ecx, esi
call fcn.00413c92
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xfc]
call fcn.00413ef4
pop ecx
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0x38], 0x7c
je 0x404500
mov edx, 0x48f270
mov ecx, esi
call fcn.00413c92
mov ebx, 0x4856a0
mov ecx, esi
mov edx, ebx
call fcn.00413c92
push dword [esp + 0x3c]
mov edi, 0x400
lea eax, [esp + 0xfc]
push 0x48f274
push edi
push eax
push esi
call fcn.00413caa
mov eax, dword [esp + 0x50]
add esp, 0x14
test eax, eax
je 0x4046b3
xor ecx, ecx
mov ebx, eax
mov word [esp + 0xf8], cx
test bl, 1
je 0x404564
push str.CAPS
lea ecx, [esp + 0xfc]
xor ebx, 1
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
test al, 2
je 0x404581
push str.HEIGHT
lea ecx, [esp + 0xfc]
xor ebx, 2
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
test al, 4
je 0x40459e
push str.WIDTH
lea ecx, [esp + 0xfc]
xor ebx, 4
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
test al, 8
je 0x4045bb
push str.PITCH
lea ecx, [esp + 0xfc]
xor ebx, 8
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
mov ecx, 0x1000
test ecx, eax
je 0x4045dc
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.PIXELFORMAT
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
mov ecx, 0x20000
test ecx, eax
je 0x4045fd
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.MIPMAPCOUNT
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
mov ecx, 0x80000
test ecx, eax
je 0x40461e
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.LINEARSIZE
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
mov ecx, 0x800000
test ecx, eax
je 0x40463f
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.DEPTH
call fcn.00413eb3
mov eax, dword [esp + 0x40]
pop ecx
test ebx, ebx
je 0x40467d
cmp ebx, eax
je 0x40467d
push ebx
push str._08X
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00401e41
xor eax, eax
lea ecx, [esp + 0x108]
mov word [esp + 0x106], ax
lea eax, [esp + 0xc8]
push eax
call fcn.00413eb3
add esp, 0x14
cmp word [esp + 0xf8], 0
je 0x4046ae
mov edx, 0x48e668
mov ecx, esi
call fcn.00413c92
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
mov edx, 0x48e670
mov ecx, esi
call fcn.00413c92
mov ebx, 0x4856a0
mov edx, ebx
mov ecx, esi
call fcn.00413c92
test byte [esp + 0x3c], 4
jne 0x4046ca
cmp dword [esp + 0x44], 0
je 0x4046e5
push dword [esp + 0x44]
lea eax, [esp + 0xfc]
push str.Surface_Width:_t_u_pixels_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test byte [esp + 0x3c], 2
jne 0x4046f3
cmp dword [esp + 0x40], 0
je 0x40470e
push dword [esp + 0x40]
lea eax, [esp + 0xfc]
push str.Surface_Height:_t_u_pixels_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test byte [esp + 0x3c], 8
jne 0x404731
test dword [esp + 0x3c], 0x80000
jne 0x404756
cmp dword [esp + 0x48], 0
je 0x404771
push dword [esp + 0x48]
push str.Pitch_Or_Size:_t_u_bytes_r_n
jmp 0x40475f
push dword [esp + 0x48]
lea eax, [esp + 0xfc]
push str.Pitch:_t_t_u_bytes_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test dword [esp + 0x3c], 0x80000
je 0x404771
push dword [esp + 0x48]
push str.Linear_Size:_t_u_bytes_r_n
push edi
lea eax, [esp + 0x104]
push eax
push esi
call fcn.00413caa
add esp, 0x14
test dword [esp + 0x3c], 0x800000
jne 0x404782
cmp dword [esp + 0x4c], 0
je 0x40479d
push dword [esp + 0x4c]
lea eax, [esp + 0xfc]
push str.Depth:_t_t_u_pixels_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test dword [esp + 0x3c], 0x20000
jne 0x4047ae
cmp dword [esp + 0x50], 0
je 0x4047c9
push dword [esp + 0x50]
lea eax, [esp + 0xfc]
push str.Mipmap_Levels:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
cmp dword [esp + 0x54], 0x504d4947
jne 0x40482d
cmp dword [esp + 0x58], 0x5344442d
jne 0x40482d
mov ecx, dword [esp + 0x5c]
movzx eax, cl
push eax
movzx eax, ch
push eax
movzx eax, byte [esp + 0x66]
push eax
push str.GIMP_Plug_in:_t_u._u._u_r_n
push edi
lea eax, [esp + 0x10c]
push eax
push esi
call fcn.00413caa
add esp, 0x1c
cmp dword [esp + 0x60], 0
je 0x40482d
mov edx, str.Extra_FourCC:_t
mov ecx, esi
call fcn.00413c92
mov edx, dword [esp + 0x60]
mov ecx, esi
call fcn.0040436f
mov edx, ebx
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0x78], 0x5454564e
jne 0x404863
mov ecx, dword [esp + 0x7c]
movzx eax, cl
push eax
movzx eax, ch
push eax
movzx eax, byte [esp + 0x86]
push eax
push str.NVTT_Version:_t_d._d._d_r_n
push edi
lea eax, [esp + 0x10c]
push eax
push esi
call fcn.00413caa
add esp, 0x1c
cmp dword [esp + 0x70], 0x52455655
jne 0x404888
push dword [esp + 0x74]
lea eax, [esp + 0xfc]
push str.User_Version:_t_d_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test dword [esp + 0x3c], 0x1000
jne 0x4048a0
cmp dword [esp + 0x80], 0
jbe 0x404ca7
mov edx, str.PixelFmt_Size:_t
mov ecx, esi
call fcn.00413c92
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0xfc]
call fcn.00413ef4
pop ecx
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0x80], 0x20
je 0x4048e5
mov edx, 0x48f270
mov ecx, esi
call fcn.00413c92
mov edx, ebx
mov ecx, esi
call fcn.00413c92
push dword [esp + 0x84]
lea eax, [esp + 0xfc]
push str.PixelFmt_Flags:_t_08X
push edi
push eax
push esi
call fcn.00413caa
mov eax, dword [esp + 0x98]
add esp, 0x14
test eax, eax
je 0x404b38
xor ecx, ecx
mov ebx, eax
mov word [esp + 0xf8], cx
test bl, 4
je 0x404948
push str.FOURCC
lea ecx, [esp + 0xfc]
xor ebx, 4
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
test al, 0x40
je 0x404968
push 0x48dc04
lea ecx, [esp + 0xfc]
xor ebx, 0x40
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x200
test ecx, eax
je 0x40498c
xor ebx, ecx
lea ecx, [esp + 0xf8]
push 0x48f56c
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x20000
test ecx, eax
je 0x4049b0
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.LUMINANCE
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
test al, 0x20
je 0x4049d0
push str.PAL8
lea ecx, [esp + 0xfc]
xor ebx, 0x20
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
test al, 1
je 0x4049f0
push str.ALPHAPIXELS
lea ecx, [esp + 0xfc]
xor ebx, 1
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
test al, 2
je 0x404a10
push str.ALPHA
lea ecx, [esp + 0xfc]
xor ebx, 2
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x8000
test ecx, eax
je 0x404a34
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.ALPHAPREMULT
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x40000
test ecx, eax
je 0x404a58
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.BUMPLUMINANCE
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x80000
test ecx, eax
je 0x404a7c
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.BUMPDUDV
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x80000000
test ecx, eax
je 0x404aa0
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.NORMAL
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
mov ecx, 0x40000000
test ecx, eax
je 0x404ac4
xor ebx, ecx
lea ecx, [esp + 0xf8]
push str.SRGB
call fcn.00413eb3
mov eax, dword [esp + 0x88]
pop ecx
test ebx, ebx
je 0x404b02
cmp ebx, eax
je 0x404b02
push ebx
push str._08X
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00401e41
xor eax, eax
lea ecx, [esp + 0x108]
mov word [esp + 0x106], ax
lea eax, [esp + 0xc8]
push eax
call fcn.00413eb3
add esp, 0x14
cmp word [esp + 0xf8], 0
je 0x404b33
mov edx, 0x48e668
mov ecx, esi
call fcn.00413c92
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
mov edx, 0x48e670
mov ecx, esi
call fcn.00413c92
mov ebx, 0x4856a0
mov edx, ebx
mov ecx, esi
call fcn.00413c92
test byte [esp + 0x84], 4
je 0x404b6e
mov edx, str.FourCC_Tag:_t
mov ecx, esi
call fcn.00413c92
mov edx, dword [esp + 0x88]
mov ecx, esi
call fcn.0040436f
mov edx, ebx
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0x8c], 0
jbe 0x404ca7
push 4
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0045ea00
add esp, 0xc
test byte [esp + 0x84], 4
je 0x404c11
movzx eax, byte [esp + 0x34]
push eax
call fcn.0046cdb0
pop ecx
test eax, eax
je 0x404c11
movzx eax, byte [esp + 0x35]
push eax
call fcn.0046cdb0
pop ecx
test eax, eax
je 0x404c11
movzx eax, byte [esp + 0x36]
push eax
call fcn.0046cdb0
pop ecx
test eax, eax
je 0x404c11
movzx eax, byte [esp + 0x37]
push eax
call fcn.0046cdb0
pop ecx
test eax, eax
je 0x404c11
movzx eax, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push eax
mov eax, dword [esp + 0x3c]
movzx ecx, ah
push ecx
movzx eax, al
push eax
push str.Swizzle:_t_hc_hc_hc_hc_r_n
push edi
lea eax, [esp + 0x110]
push eax
push esi
call fcn.00413caa
add esp, 0x20
jmp 0x404ca7
push dword [esp + 0x8c]
lea eax, [esp + 0xfc]
push str.Bit_Count:_t_u_bits_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x90]
push str.Red_Mask:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x94]
push str.Green_Mask:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x98]
push str.Blue_Mask:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x9c]
push str.Alpha_Mask:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test byte [esp + 0x3c], 1
jne 0x404cda
cmp dword [esp + 0xa0], 0
jne 0x404cda
cmp dword [esp + 0xa4], 0
jne 0x404cda
cmp dword [esp + 0xa8], 0
jne 0x404cda
cmp dword [esp + 0xac], 0
je 0x40504e
push dword [esp + 0xa0]
lea eax, [esp + 0xfc]
push str.Surface_Flags:_t_08X
push edi
push eax
push esi
call fcn.00413caa
mov eax, dword [esp + 0xb4]
add esp, 0x14
test eax, eax
je 0x404e12
xor ecx, ecx
mov edi, eax
mov word [esp + 0xf8], cx
test edi, 0x1000
je 0x404d3a
push str.TEXTURE
lea ecx, [esp + 0xfc]
xor edi, 0x1000
call fcn.00413eb3
mov eax, dword [esp + 0xa4]
pop ecx
mov ecx, 0x400000
test ecx, eax
je 0x404d5e
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.MIPMAP
call fcn.00413eb3
mov eax, dword [esp + 0xa4]
pop ecx
test al, 8
je 0x404d7e
push str.COMPLEX
lea ecx, [esp + 0xfc]
xor edi, 8
call fcn.00413eb3
mov eax, dword [esp + 0xa4]
pop ecx
test al, 2
je 0x404d9e
push str.ALPHA
lea ecx, [esp + 0xfc]
xor edi, 2
call fcn.00413eb3
mov eax, dword [esp + 0xa4]
pop ecx
test edi, edi
je 0x404ddc
cmp edi, eax
je 0x404ddc
push edi
push str._08X
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00401e41
xor eax, eax
lea ecx, [esp + 0x108]
mov word [esp + 0x106], ax
lea eax, [esp + 0xc8]
push eax
call fcn.00413eb3
add esp, 0x14
cmp word [esp + 0xf8], 0
je 0x404e0d
mov edx, 0x48e668
mov ecx, esi
call fcn.00413c92
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
mov edx, 0x48e670
mov ecx, esi
call fcn.00413c92
mov edi, 0x400
mov edx, ebx
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0xa4], 0
je 0x404ff9
push dword [esp + 0xa4]
lea eax, [esp + 0xfc]
push str.Cubemap_Flags:_t_08X
push edi
push eax
push esi
call fcn.00413caa
xor eax, eax
add esp, 0x14
mov word [esp + 0xf8], ax
mov eax, dword [esp + 0xa4]
mov edi, eax
test edi, 0x200
je 0x404e81
push str.CUBEMAP
lea ecx, [esp + 0xfc]
xor edi, 0x200
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
mov ecx, 0x400
test ecx, eax
je 0x404ea5
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.POSX
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
mov ecx, 0x800
test ecx, eax
je 0x404ec9
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.NEGX
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
test eax, 0x1000
je 0x404eef
push str.POSY
lea ecx, [esp + 0xfc]
xor edi, 0x1000
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
mov ecx, 0x2000
test ecx, eax
je 0x404f13
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.NEGY
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
mov ecx, 0x4000
test ecx, eax
je 0x404f37
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.POSZ
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
test eax, 0x8000
je 0x404f5d
push str.NEGZ
lea ecx, [esp + 0xfc]
xor edi, 0x8000
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
mov ecx, 0x200000
test ecx, eax
je 0x404f81
xor edi, ecx
lea ecx, [esp + 0xf8]
push str.VOLUME
call fcn.00413eb3
mov eax, dword [esp + 0xa8]
pop ecx
test edi, edi
je 0x404fbf
cmp edi, eax
je 0x404fbf
push edi
push str._08X
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00401e41
xor eax, eax
lea ecx, [esp + 0x108]
mov word [esp + 0x106], ax
lea eax, [esp + 0xc8]
push eax
call fcn.00413eb3
add esp, 0x14
cmp word [esp + 0xf8], 0
je 0x404ff0
mov edx, 0x48e668
mov ecx, esi
call fcn.00413c92
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
mov edx, 0x48e670
mov ecx, esi
call fcn.00413c92
mov edx, ebx
mov ecx, esi
call fcn.00413c92
cmp dword [esp + 0xa8], 0
mov edi, 0x400
je 0x405026
push dword [esp + 0xa8]
lea eax, [esp + 0xfc]
push str.Caps3_Flags:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
cmp dword [esp + 0xac], 0
je 0x40504e
push dword [esp + 0xac]
lea eax, [esp + 0xfc]
push str.Caps4_Flags:_t_08X_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
test byte [esp + 0x84], 4
je 0x4053a7
cmp dword [esp + 0x88], 0x30315844
mov eax, 0x584f4258
je 0x40507b
cmp dword [esp + 0x88], eax
jne 0x4053a7
xor ebx, ebx
cmp dword [esp + 0x88], eax
push 0x24
lea eax, [esp + 0x14]
sete bl
push 0
push eax
mov dword [esp + 0x40], ebx
call fcn.0045e8a0
mov eax, ebx
lea edx, [esp + 0x1c]
add esp, 0xc
shl eax, 4
add eax, 0x14
mov ecx, ebp
push eax
call fcn.004010b0
pop ecx
test eax, eax
je 0x4053bf
mov edx, 0x485608
mov ecx, esi
call fcn.00413c92
push dword [esp + 0x10]
lea eax, [esp + 0xfc]
push str.Pixel_Format:_t_u
push edi
push eax
push esi
call fcn.00413caa
mov edx, dword [esp + 0x24]
add esp, 0x14
mov ecx, esi
call fcn.00404037
mov edx, 0x4856a0
mov ecx, esi
call fcn.00413c92
mov edx, str.Dimension:_t
mov ecx, esi
call fcn.00413c92
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40517e
sub eax, 1
je 0x405177
sub eax, 1
je 0x40516b
sub eax, 1
je 0x405144
sub eax, 1
je 0x40513d
push dword [esp + 0x14]
lea eax, [esp + 0xfc]
push 0x48dbfc
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
jmp 0x40518a
mov edx, 0x48f920
jmp 0x405183
test byte [esp + 0x18], 4
je 0x405157
mov edx, str.Cube_Array
mov eax, str.Cube
jmp 0x405161
mov edx, str.2D_Array
mov eax, 0x48f918
cmp dword [esp + 0x1c], 1
cmovbe edx, eax
jmp 0x405183
mov edx, str.1D_Array
mov eax, 0x48f8d8
jmp 0x405161
mov edx, str.Buffer
jmp 0x405183
mov edx, str.Unknown
mov ecx, esi
call fcn.00413c92
mov edx, 0x4856a0
mov ecx, esi
call fcn.00413c92
push dword [esp + 0x18]
lea eax, [esp + 0xfc]
push str.Resource_Flags:_t_08X
push edi
push eax
push esi
call fcn.00413caa
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x405294
xor ecx, ecx
mov ebx, eax
mov word [esp + 0xf8], cx
test bl, 1
je 0x4051e7
push str.GENERATEMIPS
lea ecx, [esp + 0xfc]
xor ebx, 1
call fcn.00413eb3
mov eax, dword [esp + 0x1c]
pop ecx
test al, 2
je 0x405204
push str.SHARED
lea ecx, [esp + 0xfc]
xor ebx, 2
call fcn.00413eb3
mov eax, dword [esp + 0x1c]
pop ecx
test al, 4
je 0x405221
push str.TEXTURECUBE
lea ecx, [esp + 0xfc]
xor ebx, 4
call fcn.00413eb3
mov eax, dword [esp + 0x1c]
pop ecx
test ebx, ebx
je 0x40525f
cmp ebx, eax
je 0x40525f
push ebx
push str._08X
lea eax, [esp + 0xc0]
push 0x20
push eax
call fcn.00401e41
xor eax, eax
lea ecx, [esp + 0x108]
mov word [esp + 0x106], ax
lea eax, [esp + 0xc8]
push eax
call fcn.00413eb3
add esp, 0x14
cmp word [esp + 0xf8], 0
je 0x405290
mov edx, 0x48e668
mov ecx, esi
call fcn.00413c92
lea edx, [esp + 0xf8]
mov ecx, esi
call fcn.00413c92
mov edx, 0x48e670
mov ecx, esi
call fcn.00413c92
mov ebx, dword [esp + 0x34]
mov edx, 0x4856a0
mov ecx, esi
call fcn.00413c92
push dword [esp + 0x1c]
lea eax, [esp + 0xfc]
push str.Array_Size:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
mov edx, str.Alpha_Mode:_t
mov ecx, esi
call fcn.00413c92
mov ecx, dword [esp + 0x20]
and ecx, 7
mov eax, ecx
sub eax, 0
je 0x40531f
sub eax, 1
je 0x405318
sub eax, 1
je 0x405311
sub eax, 1
je 0x40530a
sub eax, 1
je 0x405303
push ecx
push 0x48dbfc
push edi
lea eax, [esp + 0x104]
push eax
push esi
call fcn.00413caa
add esp, 0x14
jmp 0x40532b
mov edx, str.Custom
jmp 0x405324
mov edx, str.Opaque
jmp 0x405324
mov edx, str.Premultiplied
jmp 0x405324
mov edx, str.Straight
jmp 0x405324
mov edx, str.Unknown
mov ecx, esi
call fcn.00413c92
mov edx, 0x4856a0
mov ecx, esi
call fcn.00413c92
test ebx, ebx
je 0x4053a7
push dword [esp + 0x24]
lea eax, [esp + 0xfc]
push str.Tile_Mode:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x28]
push str.Base_Alignment:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x2c]
push str.Data_Size:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
lea eax, [esp + 0xf8]
push dword [esp + 0x30]
push str.XDK_Version:_t_u_r_n
push edi
push eax
push esi
call fcn.00413caa
add esp, 0x14
push ecx
push dword [esp + 0x908]
mov edx, ebp
mov ecx, esi
call fcn.004053da
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4053c1
xor eax, eax
mov ecx, dword [esp + 0x8fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x8f0
ret