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

Disassembly:
push 0xffffffffffffffff
push 0x6f8108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
mov ecx, dword [esp + 0x80]
mov al, byte [esi + 0x1c]
test al, al
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
jne case.0x5f3c8a.3
movzx eax, byte [esi + 0x1d]
dec eax
cmp eax, 5
ja case.0x5f3c8a.3
jmp dword [eax*4 + 0x5f479c]
cmp ecx, 0x1a
je case.0x5f3c8a.3
mov edi, 0x15
jmp 0x5f3ca7
cmp ecx, 0x17
je case.0x5f3c8a.3
mov edi, 0x16
mov dword [esp + 0x10], edi
mov ecx, dword [0x781e94]
push edi
call fcn.005e18e0
test eax, eax
mov dword [esp + 8], eax
jne 0x5f3cd4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18
movzx eax, byte [esi + 0x1c]
dec eax
cmp eax, 5
push ebx
push ebp
ja case.0x5f3ce4.3
jmp dword [eax*4 + 0x5f47b4]
mov eax, dword [esp + 0x9c]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x5c], eax
movzx eax, word [esi + 0x28]
add eax, 0xff
shr eax, 8
dec eax
cmp ebp, eax
mov dword [esp + 0x58], ebx
jne 0x5f3d26
mov ecx, esi
call fcn.005f34b0
mov edi, eax
add edi, ebx
jmp 0x5f3d2c
lea edi, [ebx + 0x100]
movzx ecx, word [esi + 0x2a]
mov ebx, dword [esp + 0x94]
add ecx, 0xff
shr ecx, 8
dec ecx
cmp ebx, ecx
mov dword [esp + 0x60], edi
jne 0x5f3d59
mov ecx, esi
call fcn.005f34d0
add eax, dword [esp + 0x9c]
jmp 0x5f3d65
mov eax, dword [esp + 0x9c]
add eax, 0x100
movzx edx, byte [esi + 0x1d]
shl ebx, 8
mov ecx, ebx
mov ebx, dword [esp + 0x98]
shl ebp, 8
sub edi, ebx
add edi, ebp
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x6c], ecx
sub ecx, ebp
add ecx, eax
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
call fcn.005f3420
mov ebx, eax
movzx eax, word [esi + 0x28]
add esp, 4
lea edx, [esp + 0x8c]
push edx
lea edi, [eax + eax + 3]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push eax
and edi, 0xfffffffc
call dword [ecx + 0x3c]
test eax, eax
jl 0x5f476d
mov ecx, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x98]
push 0
push edi
push ebx
push ecx
lea edx, [esp + 0x74]
push edx
push 0
push eax
call fcn.006c06d7
mov esi, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge case.0x5f3ce4.3
pop ebp
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18
movzx eax, word [esi + 0x28]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add eax, 0xff
shr eax, 8
dec eax
cmp ebp, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
jne 0x5f3e7e
cmp edi, 0x31545844
je 0x5f3e6b
cmp edi, 0x33545844
je 0x5f3e6b
mov ecx, esi
call fcn.005f34b0
mov edi, eax
add edi, ebx
jmp 0x5f3e84
mov ecx, esi
call fcn.005f34b0
mov edi, eax
add edi, 3
and edi, 0xfffffffc
add edi, ebx
jmp 0x5f3e84
lea edi, [ebx + 0x100]
movzx eax, word [esi + 0x2a]
mov ebx, dword [esp + 0x94]
add eax, 0xff
shr eax, 8
dec eax
cmp ebx, eax
mov dword [esp + 0x60], edi
jne 0x5f3eda
mov eax, dword [esp + 0x18]
cmp eax, 0x31545844
je 0x5f3ec2
cmp eax, 0x33545844
je 0x5f3ec2
mov ecx, esi
call fcn.005f34d0
add eax, dword [esp + 0x9c]
jmp 0x5f3ee6
mov ecx, esi
call fcn.005f34d0
mov ecx, dword [esp + 0x9c]
add eax, 3
and eax, 0xfffffffc
add eax, ecx
jmp 0x5f3ee6
mov eax, dword [esp + 0x9c]
add eax, 0x100
sub edi, dword [esp + 0x98]
shl ebp, 8
add edi, ebp
shl ebx, 8
mov ecx, ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edi
sub ecx, dword [esp + 0x9c]
add ecx, eax
mov dword [esp + 0x74], ecx
movzx ecx, byte [esi + 0x1d]
push ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebp
call fcn.005f3420
mov ebx, eax
push ebx
call fcn.005f33f0
mov edi, eax
movzx eax, word [esi + 0x28]
add eax, 3
and eax, 0xfffffffc
imul edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 8
lea ecx, [esp + 0x8c]
push ecx
push 0
push eax
shr edi, 2
call dword [edx + 0x3c]
test eax, eax
jl 0x5f476d
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x98]
push 0
push edi
push ebx
push eax
lea ecx, [esp + 0x74]
push ecx
push 0
push edx
call fcn.006c06d7
mov esi, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge case.0x5f3ce4.3
push 0x41a
push str.._sourceD3DBitmap.cpp
push esi
call fcn.005a2fd0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
mov ecx, esi
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x20], eax
je 0x5f476d
push edi
push ebx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.005f31c0
mov edi, dword [esp + 0x30]
test edi, edi
je 0x5f476d
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x5f476d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
add edi, 3
and edi, 0xfffffffc
lea edx, [edi + eax]
add ebp, 3
mov dword [esp + 0x58], eax
and ebp, 0xfffffffc
lea ebx, [ecx + ebp]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x94]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x70], ebx
call fcn.006ebe10
movzx eax, byte [esi + 0x1d]
push eax
call fcn.005f3420
push eax
mov dword [esp + 0x20], eax
call fcn.005f33f0
mov ecx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov ebx, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
imul esi, ecx
mov ecx, dword [0x780688]
add esp, 8
sar ebx, 2
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x8c], edx
mov dword [esp + 0x80], 0
jne 0x5f40d3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x30]
push edx
push 0
push eax
call dword [ecx + 0x40]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x94], ecx
jmp 0x5f40e8
mov edx, esi
imul edx, ebx
push edx
call fcn.0040f0f0
add esp, 4
mov dword [esp + 0x94], esi
test ebx, ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x1c], eax
jbe 0x5f4135
mov dword [esp + 0x98], ebx
mov ebx, eax
mov byte [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push ebx
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.005f37c0
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
add esp, 0x14
add ebx, ecx
dec eax
mov dword [esp + 0x98], eax
jne 0x5f4100
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x8c], esi
jne 0x5f4157
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x24]
jmp 0x5f46ff
xor ecx, ecx
mov dword [esp + 0x6c], ecx
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x70]
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push esi
push ecx
lea edx, [esp + 0x74]
push edx
push 0
push eax
call fcn.006c06d7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x24]
jmp 0x5f46ff
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
mov ecx, esi
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5f476d
push edi
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.005f31c0
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x5f476d
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x5f476d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
add ebp, 3
add ebx, 3
and ebp, 0xfffffffc
and ebx, 0xfffffffc
lea edx, [eax + ebp]
lea esi, [ebx + ecx]
push 0x33545844
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], esi
call fcn.005f33f0
mov esi, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [0x780688]
mov dword [esp + 0x98], eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
imul esi, edi
mov eax, esi
shr eax, 1
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x8c], 0x33545844
mov dword [esp + 0x80], 1
jne 0x5f42bd
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
call dword [edx + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edx
mov dword [esp + 0x98], eax
jmp 0x5f42db
mov ecx, esi
imul ecx, dword [esp + 0x94]
push ecx
call fcn.0040f0f0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x98], esi
push esi
call fcn.0040f0f0
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x98]
add esp, 4
test eax, eax
mov dword [esp + 0x90], edx
jbe 0x5f438e
mov dword [esp + 0x94], eax
jmp 0x5f4310
mov edx, dword [esp + 0x20]
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
push 0
push esi
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.005f37c0
add esp, 0x14
xor ecx, ecx
test edi, edi
jbe 0x5f4366
mov eax, dword [esp + 0x90]
lea esp, [esp]
mov edx, dword [0x771710]
mov dword [eax], edx
mov edx, dword [0x771714]
mov dword [eax + 4], edx
mov edx, dword [esi + ecx*8]
mov dword [eax + 8], edx
mov edx, dword [esi + ecx*8 + 4]
mov dword [eax + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, edi
jb 0x5f4340
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
add ecx, eax
mov eax, dword [esp + 0x94]
dec eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
jne 0x5f4310
cmp dword [esp + 0x8c], 0x33545844
jne 0x5f43b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x28]
jmp 0x5f46ff
xor ecx, ecx
mov dword [esp + 0x6c], ecx
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x70]
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push 0x33545844
push ecx
lea edx, [esp + 0x74]
push edx
push 0
push eax
call fcn.006c06d7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x28]
jmp 0x5f46ff
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
mov ecx, esi
call fcn.006ebf90
test eax, eax
mov dword [esp + 0x20], eax
je 0x5f476d
push edi
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.005f31c0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5f476d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x5f476d
lea ebp, [eax + 3]
mov eax, dword [esp + 0x98]
lea ebx, [ecx + 3]
mov ecx, dword [esp + 0x9c]
and ebp, 0xfffffffc
and ebx, 0xfffffffc
lea edx, [eax + ebp]
lea edi, [ebx + ecx]
push 0x33545844
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edi
call fcn.005f33f0
mov edi, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
mov ebx, eax
mov ecx, dword [0x780688]
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
imul edi, ebp
mov eax, edi
shr eax, 1
add esp, 4
sar ebx, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x8c], 0x33545844
mov dword [esp + 0x80], 2
jne 0x5f451d
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 0
push eax
call dword [edx + 0x40]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], edx
mov dword [esp + 0x90], eax
jmp 0x5f4539
mov ecx, edi
imul ecx, ebx
push ecx
call fcn.0040f0f0
add esp, 4
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], edi
movzx eax, byte [esi + 0x1d]
dec eax
mov edx, dword [esp + 0x98]
mov dword [esp + 0x94], edx
je 0x5f4652
dec eax
je 0x5f45f1
push edi
call fcn.0040f0f0
add esp, 4
test ebx, ebx
mov esi, eax
jbe 0x5f4678
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x28]
push eax
push 0
push esi
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.005f37c0
add esp, 0x14
xor ecx, ecx
test ebp, ebp
jbe 0x5f45ca
mov eax, dword [esp + 0x94]
mov edx, dword [0x77171c]
mov edi, dword [0x771718]
jmp 0x5f45b0
mov ebx, dword [esi + ecx*8]
mov dword [eax], ebx
mov ebx, dword [esi + ecx*8 + 4]
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, ebp
jb 0x5f45b0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
add ecx, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x18], eax
jne 0x5f4570
jmp 0x5f4678
test ebx, ebx
jbe 0x5f4678
mov edx, dword [0x771714]
mov esi, dword [0x771710]
mov edi, dword [0x77171c]
mov dword [esp + 0x18], ebx
mov ebx, dword [0x771718]
test ebp, ebp
jbe 0x5f4633
mov eax, dword [esp + 0x94]
mov ecx, ebp
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
add eax, 0x10
dec ecx
jne 0x5f4622
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
add eax, ecx
mov dword [esp + 0x94], eax
dec dword [esp + 0x18]
jne 0x5f4615
jmp 0x5f4678
test ebx, ebx
jbe 0x5f4678
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
shl ebp, 4
push ebp
push 0
push esi
call fcn.0065c670
add esp, 0xc
add esi, edi
dec ebx
jne 0x5f4667
cmp dword [esp + 0x8c], 0x33545844
jne 0x5f4693
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x44]
jmp 0x5f46fb
xor ecx, ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x70]
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push 0x33545844
push ecx
lea edx, [esp + 0x74]
push edx
push 0
push eax
call fcn.006c06d7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0xffffffff
mov dword [0x780688], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x60], eax
add ecx, 3
lea eax, [esp + 0x58]
and ecx, 0xfffffffc
push eax
mov dword [esp + 0x68], ecx
mov edx, dword [esi]
push esi
call dword [edx + 0x48]
mov ecx, dword [0x781e94]
mov eax, dword [ecx + 0x1dc]
mov ecx, dword [esp + 0x88]
mov edx, dword [eax]
push ecx
push esi
push eax
call dword [edx + 0x74]
test eax, eax
jge 0x5f4784
push 0x522
push str.._sourceD3DBitmap.cpp
push eax
call fcn.005a2fd0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18
mov ecx, dword [esp + 0x78]
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18