Function at 0x458780
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 [0x1173748]
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
jne 0x4587d8
push ebp
push edi
push str.no__s_files_in_directory__s_n
push ebx
call dword [0x1173700]
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 [0x1173700]
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], ebx
jle 0x4589fd
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x24], esi
mov ecx, dword [esi]
push 3
push 0x4f148c
push ecx
call fcn.00429b70
add esp, 0xc
test eax, eax
je 0x4589c6
mov edx, dword [esi]
lea eax, [esp + 0x30]
push edx
push ebp
push str._s__s
push 0x40
push eax
call fcn.00429d30
lea ecx, [esp + 0x44]
push ecx
push str....cropping__s..
push 0
call dword [0x1173700]
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.00456280
mov eax, dword [esp + 0x40]
add esp, 0x30
test eax, eax
jne 0x45887d
push str.error_reading_file__ignoring._n
push 0
call dword [0x1173700]
add esp, 8
jmp 0x4589c6
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.004584b0
add esp, 0x18
test eax, eax
je 0x4589ed
mov edi, dword [esp + 0xbc]
mov esi, edi
imul esi, ebx
shl esi, 2
push esi
call fcn.004c3af4
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.004554e0
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 fcn.004c2cc0
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.004c5220
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.00429d30
mov eax, dword [esp + 0x108]
add esp, 0x44
test eax, eax
je 0x45898f
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.004583e0
jmp 0x4589a8
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.00458310
add esp, 0x10
push str.done._n
push 0
call dword [0x1173700]
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 0x458803
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push str.unable_to_crop_image._n
push 0
call dword [0x1173700]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret