Function at 0x459d60
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 [0x11d9894]
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
jne 0x459db8
push ebp
push edi
push str.no__s_files_in_directory__s_n
push ebx
call dword [0x11d9840]
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 [0x11d9840]
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], ebx
jle 0x459fdf
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x24], esi
mov ecx, dword [esi]
push 3
push 0x4ecfc0
push ecx
call fcn.0042b940
add esp, 0xc
test eax, eax
je 0x459fa8
mov edx, dword [esi]
lea eax, [esp + 0x30]
push edx
push ebp
push str._s__s
push 0x40
push eax
call fcn.0042bb00
lea ecx, [esp + 0x44]
push ecx
push str....cropping__s..
push 0
call dword [0x11d9840]
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.004577f0
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
jne 0x459e5d
push str.error_reading_file__ignoring._n
push 0
call dword [0x11d9840]
add esp, 8
jmp 0x459fa8
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.00459a90
add esp, 0x18
test eax, eax
je 0x459fcf
mov edi, dword [esp + 0xbc]
mov esi, edi
imul esi, ebx
shl esi, 2
push esi
call dword [0x11d985c]
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.00456d50
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 [0x11d9860]
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.004c5350
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.0042bb00
mov eax, dword [esp + 0x108]
add esp, 0x44
test eax, eax
je 0x459f71
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.004599c0
jmp 0x459f8a
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.004598f0
add esp, 0x10
push str.done._n
push 0
call dword [0x11d9840]
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 0x459de3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push str.unable_to_crop_image._n
push 0
call dword [0x11d9840]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret