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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x48]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x48]
mov eax, dword [ebx + 0x18]
cmp dword [ebx + 0x3c], 0
jne 0x645a76
cmp byte [ebx + 0x39], 0
jne 0x645a82
cmp byte [ebx + 0x30], 0
jne 0x645aa4
test byte [ebx + 0x40], 2
je 0x645aa4
mov edx, dword [ebx + 0x14]
test edx, edx
jl 0x645a9b
imul edx, edx, 0x4b
mov eax, dword [eax + 0x789c]
mov eax, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0x50], eax
jmp 0x645aab
mov dword [ebp - 0x50], 0xffffff
jmp 0x645aab
mov dword [ebp - 0x50], 0x1fffffff
mov eax, dword [0x762adc]
cmp dword [eax], 0
je 0x645afd
mov eax, dword [0x762adc]
mov eax, dword [eax]
mov eax, dword [eax + 0xcc]
mov edx, 3
call fcn.006d18d0
test al, al
je 0x645afd
mov eax, dword [ebx + 0x3c]
sub eax, 1
jb 0x645adc
je 0x645aeb
jmp 0x645af2
cmp byte [ebx + 0x30], 0
jne 0x645afd
mov dword [ebx + 0x3c], 1
jmp 0x645afd
xor eax, eax
mov dword [ebx + 0x3c], eax
jmp 0x645afd
cmp dword [ebx + 0x2c], 3
jge 0x645afd
xor eax, eax
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 8]
test esi, esi
je 0x645e14
cmp dword [ebx + 0xc], 0xffffffff
jle 0x645e14
mov eax, esi
call fcn.0064595c
cmp eax, dword [ebx + 0xc]
jle 0x645e14
lea esi, [ebx + 0x1c]
lea edi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 8]
mov eax, esi
mov edx, dword [0x642304]
call fcn.004078ac
test al, al
jne 0x645b58
mov eax, esi
mov edx, dword [0x756c3c]
call fcn.004078ac
test al, al
je 0x645c48
cmp dword [ebx], 0
je 0x645bd1
cmp dword [ebx + 0x3c], 0
sete al
xor ecx, ecx
mov edx, dword [ebx + 0x34]
call fcn.006bceb4
mov esi, eax
cmp byte [ebx + 0x30], 0
jne 0x645b7c
test byte [ebx + 0x40], 1
jne 0x645b80
xor eax, eax
jmp 0x645b82
mov al, 1
xor ecx, ecx
mov edx, 0x32
call fcn.006bceb4
cmp eax, esi
jge 0x645b94
mov eax, esi
mov edx, dword [ebp - 0x84]
push edx
mov edx, dword [ebx + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x50]
push eax
movzx eax, byte [ebx + 0x38]
add eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
movzx eax, byte [ebx + 0x41]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
call fcn.00642be4
jmp 0x646334
mov eax, dword [ebx + 4]
call fcn.00501678
mov esi, eax
cmp dword [ebx + 0x3c], 0
sete al
xor ecx, ecx
mov edx, dword [ebx + 0x34]
call fcn.006bceb4
mov edi, eax
cmp byte [ebx + 0x30], 0
jne 0x645bfa
test byte [ebx + 0x40], 1
jne 0x645bfe
xor eax, eax
jmp 0x645c00
mov al, 1
xor ecx, ecx
mov edx, 0x32
call fcn.006bceb4
cmp eax, edi
jge 0x645c12
mov eax, edi
mov edx, dword [ebp - 0x84]
push edx
mov edx, dword [ebx + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x50]
push eax
movzx eax, byte [ebx + 0x38]
add eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
movzx eax, byte [ebx + 0x41]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, esi
mov eax, dword [ebx + 8]
call fcn.00642e90
jmp 0x646334
mov dl, 1
mov eax, dword [0x4fd564]
call fcn.0050698c
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x645e0d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebx], 0
je 0x645dd4
push ebp
call fcn.00645988
pop ecx
cmp byte [ebx + 0x30], 0
jne 0x645d22
test byte [ebx + 0x40], 2
je 0x645caa
mov eax, dword [ebp - 4]
call fcn.005072ac
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x18]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.00610be8
test byte [ebx + 0x40], 1
je 0x645d02
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004a1dd0
lea eax, [ebp - 0xb4]
push eax
push 0x3fe00000
push 0
push 0xff00ff
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx]
call fcn.00612834
jmp 0x645df2
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.0061509c
jmp 0x645df2
cmp dword [ebx + 0x3c], 0
jne 0x645d53
cmp byte [ebx + 0x39], 0
je 0x645d53
mov eax, dword [ebp - 4]
call fcn.005072ac
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x18]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.00610be8
cmp dword [ebx + 0x3c], 0
jne 0x645db7
cmp dword [ebx + 0x34], 0
jle 0x645db7
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004a1dd0
lea eax, [ebp - 0xb4]
push eax
fild dword [ebx + 0x34]
fdiv dword [0x64633c]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0xff00ff
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx]
call fcn.00612834
jmp 0x645df2
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.0061509c
jmp 0x645df2
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebx + 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
call fcn.005be334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646334
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.004075e4
ret
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x646334
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x646334
mov eax, dword [ebx + 0x10]
call fcn.005073ac
test al, al
je 0x645e76
cmp byte [ebx + 0x30], 0
je 0x645e76
mov eax, dword [ebx + 0x10]
call fcn.005073ac
cmp al, 7
jne 0x645f2e
mov eax, dword [0x762adc]
cmp dword [eax], 0
je 0x645e76
mov eax, dword [0x762adc]
mov eax, dword [eax]
mov eax, dword [eax + 0xcc]
xor edx, edx
call fcn.006d18d0
test al, al
je 0x645f2e
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x54], edx
xor edx, edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x70]
test eax, eax
je 0x645f1f
mov eax, dword [ebx + 0x10]
call fcn.005073ac
cmp al, 7
jne 0x645f1f
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x64]
mov eax, dword [ebx + 0x10]
call fcn.0060bc78
test al, al
je 0x645f0f
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
test eax, eax
jl 0x645f0f
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], 0
mov edi, dword [ebp - 0x68]
imul edi, dword [ebp - 0x60]
add edi, dword [ebp - 0x64]
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
dec ecx
test ecx, ecx
jl 0x645f07
inc ecx
xor esi, esi
cmp byte [edi + esi*4 + 3], 0
je 0x645f03
mov byte [ebp - 0x59], 1
jmp 0x645f07
inc esi
dec ecx
jne 0x645ef6
inc dword [ebp - 0x60]
dec dword [ebp - 0x74]
jne 0x645eda
cmp byte [ebp - 0x59], 0
jne 0x645f1f
mov dl, 6
mov eax, dword [ebx + 0x10]
call fcn.00508604
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x10]
call fcn.005073ac
cmp al, 7
jne 0x6461ff
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd03c
mov esi, dword [ebx + 0x2c]
dec esi
mov edx, dword [ebx + 0x3c]
cmp esi, edx
jg 0x645f55
mov edx, esi
imul edx
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x94], eax
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd03c
add eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x8c], eax
cmp dword [ebx], 0
je 0x645fd2
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x70]
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [0x762a08]
push eax
push 0
mov eax, dword [ebp - 0x50]
push eax
cmp dword [ebx + 0x3c], 0
sete al
xor ecx, ecx
mov edx, dword [ebx + 0x34]
call fcn.006bceb4
push eax
movzx eax, byte [ebx + 0x41]
push eax
mov ecx, dword [ebx]
lea edx, [ebp - 0x98]
lea eax, [ebx + 0x1c]
call fcn.0061347c
jmp 0x646334
mov dl, 1
mov eax, dword [0x637f14]
call fcn.0063a23c
mov dword [ebp - 0x6c], eax
mov dl, 7
mov eax, dword [ebp - 0x6c]
call fcn.00508604
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd03c
mov edx, eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd050
mov edx, eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xcc0020
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebx + 0x10]
call fcn.005072ac
call fcn.00501678
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.005072ac
call fcn.00501678
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x6c]
movzx edx, byte [ebx + 0x41]
mov byte [eax + 0x98], dl
cmp byte [ebx + 0x30], 0
jne 0x646093
test byte [ebx + 0x40], 1
je 0x646093
cmp dword [ebx + 0x34], 0x32
jge 0x646085
mov dword [ebp - 0x78], 0x32
jmp 0x64608b
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
jmp 0x646099
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x70], eax
cmp dword [ebx + 0x3c], 0
jne 0x64610f
cmp dword [ebp - 0x70], 0
je 0x64610f
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
call fcn.0060bc78
test al, al
je 0x64610f
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
test eax, eax
jl 0x64610f
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], 0
mov edi, dword [ebp - 0x68]
imul edi, dword [ebp - 0x60]
add edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
dec ecx
test ecx, ecx
jl 0x646107
inc ecx
xor esi, esi
movzx eax, byte [edi + esi*4 + 3]
imul dword [ebp - 0x70]
push ecx
mov ecx, 0x64
cdq
idiv ecx
pop ecx
push eax
pop eax
mov byte [edi + esi*4 + 3], al
inc esi
dec ecx
jne 0x6460eb
inc dword [ebp - 0x60]
dec dword [ebp - 0x74]
jne 0x6460cf
cmp byte [ebx + 0x30], 0
jne 0x64611b
test byte [ebx + 0x40], 2
jne 0x646127
cmp dword [ebx + 0x3c], 0
jne 0x64612f
cmp byte [ebx + 0x39], 0
je 0x64612f
mov eax, dword [ebp - 0x6c]
call fcn.00610b50
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd050
push eax
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd03c
pop edx
call fcn.00615dd0
mov dword [ebp - 4], eax
push 0xcc0020
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
call fcn.00501678
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.005072ac
call fcn.00501678
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
call fcn.005072ac
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x44]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.005072ac
call fcn.00501678
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
call fcn.00501678
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.004075e4
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov dword [ebp - 0x6c], edx
call fcn.004075e4
jmp 0x646334
cmp dword [ebx], 0
jne 0x646307
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd050
push eax
lea eax, [ebx + 0x1c]
mov dl, 1
call fcn.006bd03c
pop edx
call fcn.00615dd0
mov dword [ebp - 4], eax
push 0xcc0020
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
call fcn.00501678
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.005072ac
call fcn.00501678
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x2c]
push eax
movzx eax, byte [ebx + 0x30]
push eax
movzx eax, byte [ebx + 0x40]
push eax
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x38]
push eax
movzx eax, byte [ebx + 0x41]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004a1dd0
lea ecx, [ebp - 0xb4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.00610580
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.005072ac
call fcn.00501678
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
call fcn.00501678
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.004075e4
jmp 0x646334
mov eax, dword [ebx + 0x2c]
push eax
movzx eax, byte [ebx + 0x30]
push eax
movzx eax, byte [ebx + 0x40]
push eax
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x38]
push eax
movzx eax, byte [ebx + 0x41]
push eax
lea ecx, [ebx + 0x1c]
mov edx, dword [ebx]
mov eax, dword [ebx + 0x10]
call fcn.00610580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret