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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
push edi
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [0x1207054]
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
jne 0x46c118
push ebp
push edi
push str.no__s_files_in_directory__s_n
push ebx
call dword [0x1207000]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push eax
push str._i_files_found__beginning_processing.._n
push ebx
call dword [0x1207000]
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], ebx
jle 0x46c33f
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x24], esi
mov ecx, dword [esi]
push 3
push 0x4f826c
push ecx
call fcn.0042d190
add esp, 0xc
test eax, eax
je 0x46c308
mov edx, dword [esi]
lea eax, [esp + 0x30]
push edx
push ebp
push str._s__s
push 0x40
push eax
call fcn.0042d350
lea ecx, [esp + 0x44]
push ecx
push str....cropping__s..
push 0
call dword [0x1207000]
lea edx, [esp + 0x34]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.00469bd0
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
jne 0x46c1bd
push str.error_reading_file__ignoring._n
push 0
call dword [0x1207000]
add esp, 8
jmp 0x46c308
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x1c]
push 6
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0046bdf0
add esp, 0x18
test eax, eax
je 0x46c32f
mov edi, dword [esp + 0xbc]
mov esi, edi
imul esi, ebx
shl esi, 2
push esi
call dword [0x120701c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push ebx
push edi
push ebp
push edx
push eax
push ecx
call fcn.00469120
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x1207020]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x50]
push 0x2f
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
call fcn.004ce980
mov ecx, dword [esp + 0x48]
mov byte [eax], 0
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
lea eax, [esi + esi*4]
lea edx, [eax + eax*4]
mov eax, 0x66666667
shl edx, 2
sub ecx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*4]
shl eax, 1
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x60]
push esi
push ecx
push str._s_spr_i_i_i.tga
lea edx, [esp + 0xac]
push 0x40
push edx
call fcn.0042d350
mov eax, dword [esp + 0x108]
add esp, 0x44
test eax, eax
je 0x46c2d1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.0046bd20
jmp 0x46c2ea
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.0046bc50
add esp, 0x10
push str.done._n
push 0
call dword [0x1207000]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xbc]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jl 0x46c143
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push str.unable_to_crop_image._n
push 0
call dword [0x1207000]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret