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

Disassembly:
push 0xffffffffffffffff
push 0x4fc64b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xc8]
mov dword [esp + 0x64], ebx
call fcn.004b16a0
mov eax, dword [esp + 0x300]
xor esi, esi
push 1
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2fc], esi
call fcn.004b1980
test al, al
jne 0x4a23ab
mov ecx, dword [esp + 0x304]
mov edx, dword [0x53251c]
push ecx
push str.A3DTexture::LoadDetailTexture____Can_not_init_the_file_to_be_a_fileimage___s__
push edx
call fcn.0047b060
add esp, 0xc
mov dword [ebx + 0x32c], esi
jmp 0x4a2575
lea ecx, [esp + 0x10]
lea edx, [esp + 0xac]
push ecx
mov eax, dword [ebx + 0x110]
push esi
push edx
or edi, 0xffffffff
mov ecx, dword [esp + 0x2f4]
push esi
mov edx, dword [esp + 0x2f0]
mov eax, dword [eax - 0x18]
push edi
push edi
push 1
push esi
push esi
push 1
push edi
push edi
push ecx
push edx
push eax
call fcn.004c3125
cmp eax, esi
lea ecx, [esp + 0xc8]
je 0x4a2424
call fcn.004a9a90
mov eax, dword [esp + 0x304]
mov ecx, dword [0x53251c]
push eax
push str.A3DTexture::LoadDetailTexture___Cant_load__s_
push ecx
call fcn.0047b060
add esp, 0xc
mov dword [ebx + 0x32c], esi
mov dword [esp + 0x2f4], edi
jmp 0x4a2580
call fcn.004b1a90
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push ecx
push esi
mov edx, dword [eax]
push eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x7c]
cmp eax, 0x16
je 0x4a247f
cmp eax, 0x15
je 0x4a247f
cmp eax, 0x17
je 0x4a247f
cmp eax, 0x18
je 0x4a247f
mov edx, dword [0x53251c]
push str.A3DTexture::LoadDetailTexture____Texture_format_unsupported_
push edx
call fcn.0047b060
add esp, 8
lea ecx, [esp + 0xc8]
mov dword [esp + 0x2f4], edi
call fcn.004b16f0
xor al, al
jmp 0x4a258e
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x5c]
push edi
push esi
mov dword [esp + 0x24], edi
call fcn.004a1ad0
add esp, 8
cmp eax, 7
jle 0x4a24a5
mov eax, 7
mov edx, dword [esp + 0x7c]
xor ecx, ecx
cmp edx, 0x15
push eax
setne cl
add ecx, 0x15
mov dword [ebx + 0x118], eax
push ecx
push edi
push esi
mov ecx, ebx
call fcn.004a20b0
test al, al
jne 0x4a24dd
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.A3DTexture::LoadDetailTexture____Can_not_create_mip_map_chain_
jmp 0x4a2833
mov ebp, dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SetRect]
push ebp
push esi
push 0
lea eax, [esp + 0xa8]
push 0
push eax
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x9c]
push 0
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x7c]
push edx
push 0
push eax
call dword [ecx + 0x40]
test eax, eax
jge 0x4a252a
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.A3DTexture::LoadDetailTexture____Lock_original_texture_fail_
jmp 0x4a2833
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push ebp
xor ebp, ebp
push esi
push ebp
lea edx, [esp + 0x58]
push ebp
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], ecx
call edi
mov eax, dword [ebx + 0x118]
mov esi, 0x730001
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], edi
jg 0x4a25ad
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esp + 0x2f4], 0xffffffff
lea ecx, [esp + 0xc8]
call fcn.004b16f0
mov al, 1
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e8
ret 0xc
mov eax, dword [ebx + 0x32c]
lea edx, [esp + 0x4c]
push ebp
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
push edi
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x4a2824
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
cmp eax, ebp
jle 0x4a27de
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
mov dword [esp + 0x3c], ebp
jle 0x4a27b2
mov eax, esi
mov edx, dword [esp + 0x30]
imul eax, dword [esp + 0x44]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], edx
mov ecx, dword [ebx + 0x118]
mov edx, dword [esp + 0x2c]
xor edi, edi
xor ebp, ebp
xor esi, esi
dec ecx
cmp edx, ecx
jne 0x4a263c
je 0x4a2683
and al, 0x18
mov dword [edx], 0xff808080
jmp 0x4a277d
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4a2747
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x28]
add eax, 0xffffffeb
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], ebx
lea ecx, [eax*4]
add eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 3
ja case.default.0x4a267d
jmp dword [ecx*4 + 0x4a2860]
add byte [ebx - 0x72cbdba4], cl
or al, 2
mov ebx, dword [esp + 0x34]
lea ecx, [edx + eax]
mov cx, word [ecx + ebx]
and ecx, 0xffff
mov ebx, ecx
shr ebx, 7
and ebx, 0xf8
add edi, ebx
mov ebx, ecx
shr ebx, 2
and ebx, 0xf8
add ebp, ebx
and ecx, 0x1f
lea esi, [esi + ecx*8]
jmp case.default.0x4a267d
mov ebx, dword [esp + 0x34]
lea ecx, [edx + eax]
mov cx, word [ecx + ebx]
and ecx, 0xffff
mov ebx, ecx
shr ebx, 8
and ebx, 0x88
add edi, ebx
mov ebx, ecx
shr ebx, 2
and ebx, 0x1f8
add ebp, ebx
and ecx, 0x1f
lea esi, [esi + ecx*8]
jmp case.default.0x4a267d
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
add ecx, edx
mov ecx, dword [ecx + ebx]
xor ebx, ebx
mov dword [esp + 0x68], ecx
mov bl, byte [esp + 0x6a]
add edi, ebx
xor ebx, ebx
mov bl, ch
and ecx, 0xff
add ebp, ebx
add esi, ecx
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, 2
add ebx, 4
dec ecx
mov dword [esp + 0x20], ebx
mov dword [ebx], esi
and al, 0x48
jne 0x4a2670
mov ecx, dword [esp - 0x6a]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
add edx, ecx
dec eax
mov dword [esp + 0x38], eax
jne 0x4a265b
imul ebx, dword [esp + 0x14]
mov eax, edi
cdq
idiv ebx
mov ecx, eax
mov eax, ebp
cdq
idiv ebx
or ecx, 0xffffff00
shl ecx, 8
mov edi, eax
mov eax, esi
cdq
idiv ebx
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
or ecx, edi
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x60]
mov dword [edx], ecx
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
add ebp, ecx
mov ecx, dword [esp + 0x58]
inc edx
add edi, eax
cmp edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], edi
jl 0x4a2618
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0x24]
and al, 0x8b
inc esp
and al, 0x1c
add edx, 4
add ebp, esi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x24], ebp
xor ebp, ebp
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x4a25f5
mov eax, dword [ebx + 0x32c]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
lea eax, [esi + esi]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x118]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
invalid
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.A3DTexture::LoadDetailTexture____Lock_mipmap_texture_fail_
mov edx, dword [0x53251c]
push edx
call fcn.0047b060
add esp, 8
lea ecx, [esp + 0xc8]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004b16f0
xor al, al
jmp 0x4a258e