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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x64
push edi
xor edi, edi
cmp eax, edi
jne 0x5792e6
lea eax, [edi + 3]
pop edi
add esp, 0x64
ret
push esi
mov esi, dword [eax]
cmp esi, edi
mov dword [esp + 0x20], esi
jne 0x5792fc
pop esi
mov eax, 3
pop edi
add esp, 0x64
ret
mov ax, word [esp + 0x78]
cmp ax, word [esi + 0x198]
jb 0x579315
pop esi
mov eax, 6
pop edi
add esp, 0x64
ret
push ebp
mov ebp, dword [esp + 0x74]
cmp ebp, edi
je 0x579339
test byte [esp + 0x80], 1
jne 0x579339
xor ebp, ebp
and dword [esp + 0x80], 0xfffc
mov dword [esp + 0x74], ebp
push 0x676c7966
push esi
call sym.convertifd.exe_TT_LookUp_Table
add esp, 8
cmp eax, edi
jge 0x579357
pop ebp
pop esi
mov eax, 0xa
pop edi
add esp, 0x64
ret
mov ecx, dword [esi + 0x16c]
shl eax, 4
cmp ebp, edi
mov edx, dword [ecx + eax + 8]
push ebx
mov dword [esp + 0x4c], edx
je 0x579381
cmp dword [ebp + 0x130], edi
je 0x579381
mov ebx, dword [ebp + 0x134]
mov dword [esp + 0x1c], ebx
jmp 0x579390
push esi
call sym.convertifd.exe_New_Context
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], eax
cmp ebx, edi
jne 0x5793a1
pop ebx
pop ebp
pop esi
mov eax, 0x502
pop edi
add esp, 0x64
ret
push ebp
push esi
push ebx
call sym.convertifd.exe_Context_Load
add esp, 0xc
cmp ebp, edi
je 0x5793e5
test byte [ebp + 0xb0], 2
lea edi, [ebx + 0xd0]
mov ecx, 0x12
mov esi, sym.convertifd.exe_Default_GraphicsState
jne 0x5793cc
lea esi, [ebp + 0x7c]
rep movsd dword es:[edi], dword [esi]
cmp word [ebp + 0x12], 0x18
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
sbb eax, eax
neg eax
mov word [ecx + 0x4e], ax
xor edi, edi
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0x68]
mov dword [esp + 0x68], ecx
movzx ecx, word [esi + 0x19a]
mov dword [esp + 0x6c], edx
movzx edx, word [esi + 0x19c]
mov esi, dword [ebx + 0x214]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], edx
mov ecx, ebx
xor edx, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call fcn.00579250
movzx eax, word [esp + 0x80]
mov dword [esp + 0x5c], eax
mov dword [esi], eax
mov eax, dword [esp + 0x84]
and eax, 2
cmp ebp, edi
mov dword [esi + 8], eax
je 0x579464
test byte [ebp + 0xb0], 1
je 0x579464
mov dword [esi + 8], edi
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x44]
push ecx
push eax
call sym.convertifd.exe_TT_Use_Stream
mov edi, eax
add esp, 8
test edi, edi
jne 0x579e55
mov ecx, dword [esp + 0x7c]
add ecx, 0x54
mov dword [esp + 0x2c], eax
mov dword [ecx], 0xffffffff
mov dword [esp + 0x48], ecx
mov eax, 1
xor esi, esi
nop
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x214]
movzx ebp, di
imul ebp, ebp, 0x94
lea edx, [eax - 1]
add ebp, ecx
cmp edx, 4
ja case.default.0x5794c1
jmp dword [edx*4 + 0x579e98]
mov eax, dword [ebp]
cmp eax, esi
mov dword [esp + 0x2c], eax
jl 0x579d48
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx + 0x198]
cmp eax, edx
jge 0x579d48
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push 0
lea edi, [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00578b90
movsx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x18]
mov dword [ebp + 0x24], eax
add esp, 4
mov dword [ebp + 0x34], ecx
mov eax, 2
jmp 0x57949d
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx + 0x178]
mov eax, dword [esp + 0x2c]
lea edi, [eax + 1]
cmp edi, edx
jge 0x579596
mov ecx, dword [ecx + 0x17c]
mov edx, dword [ecx + eax*4]
cmp edx, dword [ecx + eax*4 + 4]
lea eax, [ecx + eax*4]
jne 0x579596
test byte [esp + 0x84], 1
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x84], esi
mov dword [ebp + 0x8c], eax
je 0x579586
push eax
lea eax, [ebx + 0x84]
push eax
call sym.convertifd.exe_Scale_X
add esp, 8
mov dword [ebp + 0x8c], eax
mov dword [ebx + 0x13c], esi
mov eax, 5
jmp 0x5794a0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x17c]
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax*4]
add eax, dword [esp + 0x4c]
push eax
call sym.convertifd.exe_TT_Seek_File
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x579e40
push 0xa
call sym.convertifd.exe_TT_Access_Frame
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x579e40
call sym.convertifd.exe_TT_Get_Short
movzx edi, ax
mov dword [esp + 0x24], edi
call sym.convertifd.exe_TT_Get_Short
movsx ecx, ax
mov dword [ebp + 0x14], ecx
call sym.convertifd.exe_TT_Get_Short
movsx edx, ax
mov dword [ebp + 0x18], edx
call sym.convertifd.exe_TT_Get_Short
movsx eax, ax
mov dword [ebp + 0x1c], eax
call sym.convertifd.exe_TT_Get_Short
movsx ecx, ax
mov dword [ebp + 0x20], ecx
call sym.convertifd.exe_TT_Forget_Frame
cmp di, word [esp + 0x34]
jg 0x579d52
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x34]
add edx, eax
test byte [esp + 0x84], 1
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x88], esi
mov dword [ebp + 0x8c], edx
je 0x57966e
push eax
lea edi, [ebx + 0x84]
push edi
call sym.convertifd.exe_Scale_X
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x8c]
push eax
push edi
call sym.convertifd.exe_Scale_X
mov edi, dword [esp + 0x34]
add esp, 0x10
mov dword [ebp + 0x8c], eax
xor eax, eax
cmp di, si
setle al
add eax, 3
jmp 0x5794a0
cmp dword [ebp + 8], esi
mov ecx, dword [esp + 0x84]
movzx eax, cx
jne 0x579694
mov eax, ecx
and eax, 0xfffd
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
push ebp
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push ebx
call fcn.00578ca0
mov edi, eax
add esp, 0x1c
cmp edi, esi
jne 0x579e40
mov dx, word [ebx + 0x5c]
sub dx, 2
movzx eax, dx
mov dword [esp + 0x18], eax
mov eax, 5
jmp 0x5794a0
mov edx, dword [esp + 0x28]
add edi, 1
cmp di, word [edx + 0x19e]
mov dword [esp + 0x30], edi
ja 0x579d5c
movzx esi, di
imul esi, esi, 0x94
add esi, ecx
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0x20], esi
call fcn.00579250
mov eax, dword [ebp + 8]
push 4
mov dword [esi + 8], eax
call sym.convertifd.exe_TT_Access_Frame
mov edi, eax
add esp, 4
test edi, edi
jne 0x579e40
call sym.convertifd.exe_TT_Get_Short
movzx eax, ax
mov dword [esp + 0x3c], eax
mov word [ebp + 0x68], ax
call sym.convertifd.exe_TT_Get_Short
movzx eax, ax
mov ecx, esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x48], ecx
mov dword [ecx], 0xffffffff
call sym.convertifd.exe_TT_Forget_Frame
mov ecx, dword [esp + 0x3c]
mov esi, ecx
and esi, 1
lea eax, [edi + 2]
je 0x579765
lea eax, [edi + 4]
mov edx, ecx
and edx, 8
mov dword [esp + 0x50], edx
je 0x579773
add eax, 2
mov edx, ecx
and edx, 0x40
mov dword [esp + 0x54], edx
je 0x579781
add eax, 4
and ecx, 0x80
mov dword [esp + 0x58], ecx
je 0x579790
add eax, 8
push eax
call sym.convertifd.exe_TT_Access_Frame
mov edi, eax
add esp, 4
test edi, edi
jne 0x579e40
call sym.convertifd.exe_TT_Get_Short
test si, si
je 0x5797ba
movsx esi, ax
call sym.convertifd.exe_TT_Get_Short
movsx eax, ax
jmp 0x5797c8
movzx eax, ax
mov edx, eax
sar edx, 8
movsx esi, dl
movsx eax, al
test byte [esp + 0x3c], 2
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], eax
je 0x5797de
mov dword [ebp + 0x7c], esi
mov dword [ebp + 0x80], eax
xor eax, eax
cmp word [esp + 0x50], ax
mov edi, 0x10000
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov esi, edi
je 0x579811
call sym.convertifd.exe_TT_Get_Short
movsx edi, ax
mov eax, dword [esp + 0x20]
add edi, edi
add edi, edi
mov esi, edi
mov dword [eax + 4], 1
jmp 0x579880
cmp word [esp + 0x54], ax
je 0x579836
call sym.convertifd.exe_TT_Get_Short
movsx edi, ax
add edi, edi
add edi, edi
call sym.convertifd.exe_TT_Get_Short
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], 1
jmp 0x579879
cmp word [esp + 0x58], ax
je 0x579880
call sym.convertifd.exe_TT_Get_Short
movsx edi, ax
add edi, edi
add edi, edi
call sym.convertifd.exe_TT_Get_Short
movsx eax, ax
add eax, eax
add eax, eax
mov dword [esp + 0x3c], eax
call sym.convertifd.exe_TT_Get_Short
movsx eax, ax
add eax, eax
add eax, eax
mov dword [esp + 0x38], eax
call sym.convertifd.exe_TT_Get_Short
mov edx, dword [esp + 0x20]
mov dword [edx + 4], 1
movsx esi, ax
add esi, esi
add esi, esi
call sym.convertifd.exe_TT_Forget_Frame
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push esi
push edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
mov dword [ebp + 0x78], esi
call sym.convertifd.exe_TT_MulFix
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x44]
push edx
push eax
call sym.convertifd.exe_TT_MulFix
add esp, 0x10
sub esi, eax
jns 0x5798ba
neg esi
cmp esi, 0x10000
je 0x5798cd
mov ecx, dword [esp + 0x20]
mov dword [ecx + 8], 0
call sym.convertifd.exe_TT_File_Pos
mov dword [ebp + 0x10], eax
jmp 0x579498
cmp di, si
jbe 0x579b80
mov eax, ebp
add edi, 0xffff
movzx ebp, di
imul ebp, ebp, 0x94
add ebp, ecx
cmp dword [ebp + 0xc], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
jne 0x57994e
test word [ebp + 0x68], 0x200
je 0x57994e
mov edx, dword [eax + 0x24]
mov dword [ebp + 0x24], edx
mov ecx, dword [eax + 0x34]
mov dword [ebp + 0x34], ecx
mov edx, dword [eax + 0x84]
mov dword [ebp + 0x84], edx
mov ecx, dword [eax + 0x88]
mov dword [ebp + 0x88], ecx
mov edx, dword [eax + 0x8c]
mov dword [ebp + 0x8c], edx
mov ecx, dword [eax + 0x90]
mov dword [ebp + 0x90], ecx
mov dword [ebp + 0xc], 1
cmp dword [eax + 4], esi
je 0x579a1a
cmp word [esp + 0x18], 0
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x54]
mov edi, dword [eax + 0x50]
jbe 0x579a1a
movzx edx, word [esp + 0x18]
mov dword [esp + 0x3c], edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [esi]
push eax
push ecx
call sym.convertifd.exe_TT_MulFix
mov edx, dword [ebp + 0x74]
mov ebx, eax
mov eax, dword [esi + 4]
push edx
push eax
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [ebp + 0x70]
mov edx, dword [esi]
push ecx
push edx
add ebx, eax
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [esi + 4]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x78]
push eax
push ecx
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [esp + 0x78]
add ecx, eax
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov edx, dword [ebp + 0x74]
mov eax, dword [edi + 4]
push edx
push eax
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [ebp + 0x6c]
mov edx, dword [edi]
push ecx
push edx
mov ebx, eax
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [edi + 4]
add ebx, eax
mov eax, dword [ebp + 0x78]
push eax
push ecx
call sym.convertifd.exe_TT_MulFix
mov edx, dword [ebp + 0x70]
mov dword [esp + 0x90], eax
mov eax, dword [edi]
push edx
push eax
call sym.convertifd.exe_TT_MulFix
mov ecx, dword [esp + 0x98]
add ecx, eax
mov dword [edi], ebx
mov dword [edi + 4], ecx
add esp, 0x40
add esi, 8
add edi, 8
sub dword [esp + 0x3c], 1
jne 0x579976
mov edi, dword [esp + 0x24]
movsx edx, di
xor eax, eax
test edx, edx
jle 0x579a45
mov esi, dword [esp + 0x20]
jmp 0x579a30
mov ecx, dword [esi + 0x5c]
mov bx, word [ebp + 0x4c]
add word [ecx + eax*2], bx
lea ecx, [ecx + eax*2]
add eax, 1
cmp eax, edx
jl 0x579a30
mov ecx, dword [esp + 0x18]
add word [ebp + 0x4c], cx
add word [ebp + 0x4e], di
sub dword [esp + 0x40], ecx
sub dword [esp + 0x34], edi
test byte [ebp + 0x68], 2
movzx eax, word [ebp + 0x4c]
jne 0x579a9c
movzx edx, word [ebp + 0x60]
cmp dx, ax
movzx ecx, word [ebp + 0x64]
jae 0x579d5c
cmp cx, ax
jae 0x579d5c
mov eax, dword [ebp + 0x50]
movzx ecx, cx
mov esi, dword [eax + ecx*8]
mov edi, dword [eax + ecx*8 + 4]
lea ecx, [eax + ecx*8]
movzx edx, dx
sub esi, dword [eax + edx*8]
sub edi, dword [eax + edx*8 + 4]
lea eax, [eax + edx*8]
jmp 0x579ae0
test byte [esp + 0x84], 1
mov esi, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x80]
je 0x579ae0
mov ebx, dword [esp + 0x1c]
add ebx, 0x84
push esi
push ebx
call sym.convertifd.exe_Scale_X
push edi
push ebx
mov esi, eax
call sym.convertifd.exe_Scale_Y
add esp, 0x10
test byte [ebp + 0x68], 4
mov edi, eax
je 0x579ae0
add esi, 0x20
add edi, 0x20
and esi, 0xffffffc0
and edi, 0xffffffc0
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x54]
mov edx, esi
mov esi, dword [esp + 0x18]
call fcn.00578c10
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
movzx ecx, si
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call fcn.005154f0
movzx ecx, word [ebp + 0x4c]
movzx edx, word [ebp + 0x4e]
mov eax, dword [ebp + 0x10]
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
call sym.convertifd.exe_TT_Seek_File
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x579e40
test byte [ebp + 0x68], 0x20
je 0x579b45
mov ebx, dword [esp + 0x1c]
lea eax, [edi + 4]
jmp 0x57949d
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
mov edi, ebp
call fcn.00579090
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x579e40
mov ebx, dword [esp + 0x1c]
lea eax, [edi + 5]
jmp 0x57949d
cmp eax, esi
jne 0x5794a0
mov ecx, dword [esp + 0x60]
movzx edi, word [esp + 0x18]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x5c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x60], edx
mov edx, dword [esp + 0x70]
mov dword [ebx + 0x64], eax
add edi, 2
cmp edi, esi
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], edx
mov dword [esp + 0x48], esi
jle 0x579bf8
mov esi, dword [esp + 0x7c]
xor eax, eax
lea esp, [esp]
mov ecx, dword [ebx + 0x64]
mov edx, dword [esi + 0x40]
mov esi, dword [ecx + eax*8]
mov dword [edx + eax*8], esi
mov ecx, dword [ecx + eax*8 + 4]
mov esi, dword [esp + 0x7c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x68]
mov dl, byte [eax + edx]
mov ecx, dword [esi + 0x44]
mov byte [eax + ecx], dl
mov eax, dword [esp + 0x48]
add eax, 1
mov dword [esp + 0x48], eax
movzx eax, ax
cmp eax, edi
jl 0x579bc0
xor esi, esi
movsx ecx, word [esp + 0x24]
xor eax, eax
cmp ecx, esi
jle 0x579c25
mov edx, dword [esp + 0x7c]
jmp 0x579c10
mov esi, dword [ebx + 0x6c]
mov si, word [esi + eax*2]
mov edi, dword [edx + 0x48]
mov word [edi + eax*2], si
add eax, 1
cmp eax, ecx
jl 0x579c10
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x24]
mov ebx, dword [eax + 0x40]
mov word [eax + 0x3c], dx
mov word [eax + 0x3e], cx
mov word [eax + 0x50], 1
mov edx, dword [ebp + 0x84]
neg edx
lea esi, [ecx + 2]
xor edi, edi
call fcn.00578c10
mov esi, dword [esp + 0x7c]
lea eax, [esi + 4]
push eax
lea eax, [esi + 0x3c]
push eax
call sym.convertifd.exe_TT_Get_Outline_BBox
add esp, 8
cmp dword [ebp + 8], edi
je 0x579c8e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and dword [esi + 4], 0xffffffc0
and dword [esi + 8], 0xffffffc0
add eax, 0x3f
and eax, 0xffffffc0
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x134], 0
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x34]
mov dword [esp + 0x7c], edx
je 0x579ca9
movzx ebx, word [edi + 0x7e]
mov eax, dword [esp + 0x84]
and eax, 1
mov dword [esp + 0x54], eax
je 0x579ce9
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
add eax, 0x84
push ecx
push eax
call sym.convertifd.exe_Scale_X
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
add eax, 0x84
push ebx
push eax
call sym.convertifd.exe_Scale_X
add esp, 0x10
mov ebx, eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov edx, dword [ebp + 0x8c]
sub edx, dword [ebp + 0x84]
mov dword [esi + 0x24], edx
cmp dword [edi + 0xa0], 0
je 0x579d66
cmp word [edi + 0xc6], 0
jbe 0x579d66
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
add edi, 0xa4
push edi
call sym.convertifd.exe_TT_Get_Metrics
mov eax, dword [esp + 0x68]
add esp, 0x10
jmp 0x579d90
mov edi, 6
jmp 0x579e40
mov edi, 0x301
jmp 0x579e40
mov edi, 0x302
jmp 0x579e40
movzx ecx, word [edi + 0x11a]
movsx eax, cx
cdq
sub eax, edx
mov dx, word [edi + 0x116]
sub dx, word [edi + 0x118]
sar eax, 1
add dx, cx
movzx ecx, dx
movzx eax, ax
mov dword [esp + 0x7c], ecx
cmp word [esp + 0x54], 0
mov ebx, dword [esp + 0x1c]
je 0x579dc8
movsx edx, ax
push edx
add ebx, 0x84
push ebx
call sym.convertifd.exe_Scale_Y
mov edi, eax
movzx eax, word [esp + 0x84]
push eax
push ebx
call sym.convertifd.exe_Scale_Y
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov ecx, eax
jmp 0x579dd0
movzx ecx, word [esp + 0x7c]
movsx edi, ax
mov eax, dword [esi + 4]
sub eax, dword [esi + 0xc]
mov dword [esi + 0x34], edi
cdq
sub eax, edx
mov dword [esi + 0x38], ecx
sar eax, 1
cmp dword [ebp + 8], 0
je 0x579df6
add edi, 0x3f
add ecx, 0x20
and eax, 0xffffffc0
and edi, 0xffffffc0
and ecx, 0xffffffc0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x134], 0
jne 0x579e35
cmp dword [esp + 0x78], 0
je 0x579e35
cmp dword [ebp + 8], 0
je 0x579e35
mov ecx, dword [ebx + 4]
mov di, word [ecx + 0x10]
call fcn.00578bc0
test eax, eax
je 0x579e35
mov edx, dword [esp + 0x5c]
movzx eax, byte [eax + edx]
shl eax, 6
mov dword [esi + 0x24], eax
mov cl, byte [ebx + 0x10c]
mov byte [esi + 0x52], cl
xor edi, edi
lea edx, [esp + 0x44]
push edx
call sym.convertifd.exe_TT_Done_Stream
mov ebp, dword [esp + 0x7c]
mov ebx, dword [esp + 0x20]
add esp, 4
test ebp, ebp
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x60], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
je 0x579e85
cmp dword [ebp + 0x130], 0
jne 0x579e8e
push ebx
call sym.convertifd.exe_Done_Context
add esp, 4
pop ebx
pop ebp
pop esi
mov eax, edi
pop edi
add esp, 0x64
ret