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

Disassembly:
push 0xffffffffffffffff
push 0x6caae8
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.0x5c70ca.3
movzx eax, byte [esi + 0x1d]
dec eax
cmp eax, 5
ja case.0x5c70ca.3
jmp dword [eax*4 + 0x5c7bdc]
cmp ecx, 0x1a
je case.0x5c70ca.3
mov edi, 0x15
jmp 0x5c70e7
cmp ecx, 0x17
je case.0x5c70ca.3
mov edi, 0x16
mov dword [esp + 0x10], edi
mov ecx, dword [0x750814]
push edi
call fcn.005b4e10
test eax, eax
mov dword [esp + 8], eax
jne 0x5c7114
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.0x5c7124.3
jmp dword [eax*4 + 0x5c7bf4]
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 0x5c7166
mov ecx, esi
call fcn.005c68f0
mov edi, eax
add edi, ebx
jmp 0x5c716c
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 0x5c7199
mov ecx, esi
call fcn.005c6910
add eax, dword [esp + 0x9c]
jmp 0x5c71a5
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.005c6860
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 0x5c7bad
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.00693647
mov esi, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge case.0x5c7124.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 0x5c72be
cmp edi, 0x31545844
je 0x5c72ab
cmp edi, 0x33545844
je 0x5c72ab
mov ecx, esi
call fcn.005c68f0
mov edi, eax
add edi, ebx
jmp 0x5c72c4
mov ecx, esi
call fcn.005c68f0
mov edi, eax
add edi, 3
and edi, 0xfffffffc
add edi, ebx
jmp 0x5c72c4
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 0x5c731a
mov eax, dword [esp + 0x18]
cmp eax, 0x31545844
je 0x5c7302
cmp eax, 0x33545844
je 0x5c7302
mov ecx, esi
call fcn.005c6910
add eax, dword [esp + 0x9c]
jmp 0x5c7326
mov ecx, esi
call fcn.005c6910
mov ecx, dword [esp + 0x9c]
add eax, 3
and eax, 0xfffffffc
add eax, ecx
jmp 0x5c7326
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.005c6860
mov ebx, eax
push ebx
call fcn.005c6830
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 0x5c7bad
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.00693647
mov esi, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge case.0x5c7124.3
push 0x41a
push str.._sourceD3DBitmap.cpp
push esi
call fcn.005786b0
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.006bef20
test eax, eax
mov dword [esp + 0x20], eax
je 0x5c7bad
push edi
push ebx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.005c6600
mov edi, dword [esp + 0x30]
test edi, edi
je 0x5c7bad
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x5c7bad
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.006beda0
movzx eax, byte [esi + 0x1d]
push eax
call fcn.005c6860
push eax
mov dword [esp + 0x20], eax
call fcn.005c6830
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 [0x74f090]
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 0x5c7513
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 0x5c7528
mov edx, esi
imul edx, ebx
push edx
call fcn.0040f150
add esp, 4
mov dword [esp + 0x94], esi
test ebx, ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x1c], eax
jbe 0x5c7575
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.005c6c00
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
add esp, 0x14
add ebx, ecx
dec eax
mov dword [esp + 0x98], eax
jne 0x5c7540
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x8c], esi
jne 0x5c7597
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x24]
jmp 0x5c7b3f
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.00693647
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x24]
jmp 0x5c7b3f
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
mov ecx, esi
call fcn.006bef20
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5c7bad
push edi
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.005c6600
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x5c7bad
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x5c7bad
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.005c6830
mov esi, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [0x74f090]
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 0x5c76fd
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 0x5c771b
mov ecx, esi
imul ecx, dword [esp + 0x94]
push ecx
call fcn.0040f150
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x98], esi
push esi
call fcn.0040f150
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 0x5c77ce
mov dword [esp + 0x94], eax
jmp 0x5c7750
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.005c6c00
add esp, 0x14
xor ecx, ecx
test edi, edi
jbe 0x5c77a6
mov eax, dword [esp + 0x90]
lea esp, [esp]
mov edx, dword [0x7402f8]
mov dword [eax], edx
mov edx, dword [0x7402fc]
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 0x5c7780
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 0x5c7750
cmp dword [esp + 0x8c], 0x33545844
jne 0x5c77f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x28]
jmp 0x5c7b3f
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.00693647
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x28]
jmp 0x5c7b3f
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
push edi
push ebx
mov ecx, esi
call fcn.006bef20
test eax, eax
mov dword [esp + 0x20], eax
je 0x5c7bad
push edi
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.005c6600
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5c7bad
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x5c7bad
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.005c6830
mov edi, eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
mov ebx, eax
mov ecx, dword [0x74f090]
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 0x5c795d
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 0x5c7979
mov ecx, edi
imul ecx, ebx
push ecx
call fcn.0040f150
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 0x5c7a92
dec eax
je 0x5c7a31
push edi
call fcn.0040f150
add esp, 4
test ebx, ebx
mov esi, eax
jbe 0x5c7ab8
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.005c6c00
add esp, 0x14
xor ecx, ecx
test ebp, ebp
jbe 0x5c7a0a
mov eax, dword [esp + 0x94]
mov edx, dword [0x740304]
mov edi, dword [0x740300]
jmp 0x5c79f0
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 0x5c79f0
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 0x5c79b0
jmp 0x5c7ab8
test ebx, ebx
jbe 0x5c7ab8
mov edx, dword [0x7402fc]
mov esi, dword [0x7402f8]
mov edi, dword [0x740304]
mov dword [esp + 0x18], ebx
mov ebx, dword [0x740300]
test ebp, ebp
jbe 0x5c7a73
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 0x5c7a62
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
add eax, ecx
mov dword [esp + 0x94], eax
dec dword [esp + 0x18]
jne 0x5c7a55
jmp 0x5c7ab8
test ebx, ebx
jbe 0x5c7ab8
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
shl ebp, 4
push ebp
push 0
push esi
call fcn.0062f6b0
add esp, 0xc
add esi, edi
dec ebx
jne 0x5c7aa7
cmp dword [esp + 0x8c], 0x33545844
jne 0x5c7ad3
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x44]
jmp 0x5c7b3b
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.00693647
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 [0x74f090], 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 [0x750814]
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 0x5c7bc4
push 0x522
push str.._sourceD3DBitmap.cpp
push eax
call fcn.005786b0
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