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

Disassembly:
push 0xffffffffffffffff
push 0x6f8178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x74]
push edi
mov edi, ecx
mov ecx, dword [0x781e94]
push eax
call fcn.005e18e0
test eax, eax
mov dword [esp + 8], eax
jne 0x5f5d17
xor al, al
pop edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10
mov ecx, dword [edi + 4]
movzx edx, word [ecx + 0x28]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], edx
movzx edx, word [eax + 0x24]
movzx eax, word [eax + 0x26]
mov dword [esp + 0x38], eax
mov ecx, edx
mov edx, dword [edi + 8]
movzx eax, word [edx + 0x28]
movzx edx, word [edx + 0x2a]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x44], eax
add edx, 3
and edx, 0xfffffffc
mov dword [esp + 0x48], edx
push ebx
mov ebx, dword [esp + 0x84]
add edx, ebx
push ebp
push esi
mov esi, dword [esp + 0x88]
lea ebp, [esi + eax]
mov eax, edx
sub eax, ebx
mov dword [esp + 0x6c], edx
cdq
and edx, 3
add eax, edx
mov dword [esp + 0x64], ebx
mov ebx, eax
mov eax, ebp
sub eax, esi
cdq
and edx, 3
add eax, edx
mov dword [esp + 0x68], ebp
mov ebp, eax
mov eax, dword [esp + 0x20]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
cdq
and edx, 3
add eax, edx
mov dword [esp + 0x60], esi
mov esi, eax
mov eax, ecx
mov ecx, dword [0x780688]
cdq
and edx, 3
add eax, edx
sar eax, 2
sar ebx, 2
sar ebp, 2
sar esi, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x84], 0x33545844
mov dword [esp + 0x78], 0
jne 0x5f5e49
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x60]
push edx
push 0
push eax
call dword [ecx + 0x40]
test eax, eax
jge 0x5f5e33
push 0x133
push str.._sourceD3DMBitmap.cpp
push eax
call fcn.005a2fd0
mov eax, dword [esp + 0x24]
add esp, 0xc
pop esi
pop ebp
pop ebx
mov dword [0x780688], eax
xor al, al
pop edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
jmp 0x5f5e9f
mov edx, ebp
imul edx, ebx
shl edx, 4
mov dword [esp + 0x2c], edx
add edx, ecx
cmp edx, dword [0x78068c]
mov dword [esp + 0x88], edx
ja 0x5f5e81
mov edx, dword [0x780684]
add ecx, edx
mov edx, dword [esp + 0x88]
mov dword [0x780688], edx
mov dword [esp + 0x24], ecx
jmp 0x5f5e96
mov eax, dword [esp + 0x2c]
push eax
call fcn.0065dc60
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 8]
mov dl, byte [ecx + 0x1c]
cmp dl, 5
mov byte [esp + 0x88], dl
jne 0x5f615e
mov edx, dword [edi + 4]
cmp byte [edx + 0x1c], 4
jne 0x5f603b
push 0
push 0
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x34], eax
jne 0x5f5f15
cmp dword [esp + 0x84], 0x33545844
jne 0x5f5ef4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
mov dword [0x780688], edx
xor al, al
pop edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10
mov ecx, dword [edi + 4]
push 0
push 0
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x20], eax
je 0x5f5edb
mov eax, dword [0x780688]
mov dword [esp + 0x40], eax
lea eax, [ebp*8]
push eax
call fcn.0040f0f0
mov edi, eax
mov eax, dword [esp + 0x34]
shl eax, 3
push eax
mov dword [esp + 0x90], eax
call fcn.0040f0f0
add esp, 8
test esi, esi
mov dword [esp + 0x3c], eax
jbe 0x5f5f78
mov ecx, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.005f32f0
add esp, 8
dec esi
jne 0x5f5f60
test ebx, ebx
jbe 0x5f602d
mov dword [esp + 0x2c], ebx
jmp 0x5f5f90
mov esi, dword [esp + 0x10]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x30]
push eax
push 0
push edi
lea eax, [ebp*8]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.005f37c0
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x4c], 0
mov edx, dword [esp + 0x4c]
push edx
push 0
push ebx
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.005f37c0
add esp, 0x28
test ebp, ebp
mov eax, edi
jbe 0x5f6010
mov edx, dword [esp + 0x28]
lea ecx, [edx*8]
sub ecx, edi
add ecx, ebx
mov edx, ebp
mov ebx, dword [eax]
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [ecx + eax]
mov dword [esi + 8], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [esi + 0xc], ebx
add esi, 0x10
add eax, 8
dec edx
jne 0x5f5ff0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add ecx, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
jne 0x5f5f90
mov eax, dword [esp + 0x40]
mov dword [0x780688], eax
jmp 0x5f61ea
mov dl, byte [esp + 0x88]
cmp dl, 5
jne 0x5f615e
mov edx, dword [edi + 4]
cmp byte [edx + 0x1c], 1
jne 0x5f6157
imul esi, dword [esp + 0x20]
mov edx, dword [edx + 0xc]
add esi, eax
push 0
lea eax, [edx + esi*8]
push 0
mov dword [esp + 0x90], eax
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x3c], eax
je 0x5f5edb
mov eax, dword [0x780688]
mov dword [esp + 0x38], eax
lea eax, [ebp*8]
push eax
call fcn.0040f0f0
add esp, 4
test ebx, ebx
mov edi, eax
jbe 0x5f6148
mov ecx, dword [esp + 0x20]
lea edx, [ecx*8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
jmp 0x5f60c0
mov esi, dword [esp + 0x10]
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x40]
push eax
push 0
push edi
lea eax, [ebp*8]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.005f37c0
add esp, 0x14
test ebp, ebp
mov eax, edi
jbe 0x5f6117
mov ecx, dword [esp + 0x88]
sub ecx, edi
mov edx, ebp
mov ebx, dword [eax]
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [ecx + eax]
mov dword [esi + 8], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [esi + 0xc], ebx
add esi, 0x10
add eax, 8
dec edx
jne 0x5f60f7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x88]
mov edx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x2c]
add esi, edx
dec eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
jne 0x5f60c0
mov ecx, dword [esp + 0x38]
mov dword [0x780688], ecx
jmp 0x5f61ea
mov dl, byte [esp + 0x88]
cmp dl, 3
jne 0x5f61ea
mov edi, dword [edi + 4]
cmp byte [edi + 0x1c], 1
jne 0x5f61ea
mov edx, dword [esp + 0x20]
imul esi, edx
add esi, eax
test ebx, ebx
mov eax, dword [edi + 0xc]
mov edi, dword [ecx + 0xc]
lea esi, [eax + esi*8]
jbe 0x5f61ea
lea ecx, [edx*8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x88], ebx
test ebp, ebp
mov eax, dword [esp + 0x10]
mov ecx, esi
jbe 0x5f61c5
mov edx, ebp
mov ebx, dword [edi]
mov dword [eax], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 0xc], ebx
add eax, 0x10
add edi, 8
add ecx, 8
dec edx
jne 0x5f61a4
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x88]
add ebx, edx
add esi, ecx
dec eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x88], eax
jne 0x5f6198
cmp dword [esp + 0x84], 0x33545844
jne 0x5f6205
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
jmp 0x5f6260
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
xor ecx, ecx
lea esi, [esp + 0x84]
push esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [eax]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x98]
push 0x33545844
push edx
lea eax, [esp + 0x7c]
push eax
push 0
push ecx
call fcn.006c06d7
mov edx, dword [0x781e94]
mov eax, dword [edx + 0x1dc]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push edx
push eax
call dword [ecx + 0x74]
test eax, eax
jge 0x5f628d
push 0x1c6
jmp 0x5f5e05
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [0x780688], ecx
mov ecx, dword [esp + 0x68]
pop ebx
mov al, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10