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

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, eax
mov eax, dword [ebp]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x1c0]
test eax, eax
push esi
push edi
je 0x651ce9
mov esi, dword [ebp + 8]
lea esp, [esp]
mov edx, dword [eax + 8]
mov ecx, dword [edx]
cmp esi, ecx
mov eax, dword [eax + 4]
jg 0x6515ae
jge 0x6515c1
test eax, eax
jne 0x6515a0
mov eax, 0xc0000229
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
add edx, 4
mov dword [esp + 0x18], edx
je 0x651ce9
mov eax, dword [ebx + 0x10]
add eax, 8
lea edi, [ebx + 0x14]
mov ebx, dword [eax]
test ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x7c], ebx
je 0x6515ed
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [edi + 0x14]
push 0x100cf494
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x28], ecx
call dword [0x100ef7e0]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea esi, [esp + 0x40]
mov eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call fcn.00634250
test eax, eax
je 0x651a2e
cmp dword [esp + 0x40], 0
jne 0x651660
lea eax, [esp + 0x44]
call fcn.0065b0c0
test eax, eax
jne 0x651660
test ebx, ebx
je 0x651651
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xc000003b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
test eax, eax
je 0x651692
mov esi, dword [esp + 0x4c]
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
neg esi
sbb esi, esi
and esi, 0xfffffffa
push ebx
add esi, 0xc000003a
call edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
test eax, eax
je 0x6518c9
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call edx
mov esi, dword [esp + 0x48]
mov ecx, esi
lea eax, [esp + 0x38]
mov edx, edi
call fcn.00634400
call fcn.0065b150
test eax, eax
jne 0x6516ec
lea esi, [esp + 0x78]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, 0xc000003b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
call fcn.0065bb60
add esp, 4
test eax, eax
jne 0x65172c
cmp dword [esp + 0x28], eax
je 0x65172c
lea esi, [esp + 0x78]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, 0xc0000056
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x6518a6
cmp dword [edi + 0xc], 0xffffffff
je 0x65176d
mov ecx, esi
lea eax, [esp + 0x40]
mov edx, edi
call fcn.00634460
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
jmp 0x65177d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call edx
or esi, 0xffffffff
cmp dword [edi + 0xc], esi
mov ebx, eax
je 0x6517a1
and dword [esp + 0x14], 0xffffffef
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x6517b6
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx], edx
cmp dword [ebp + 8], 4
jne 0x6517c5
cmp dword [0x100ef550], 0
je 0x651841
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x6517e4
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
je 0x651803
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, eax
mov ecx, dword [edi + 0xc]
cmp ecx, esi
je 0x651822
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, eax
mov ecx, dword [edi + 8]
cmp ecx, esi
je 0x651841
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, eax
cmp dword [edi + 0x18], esi
jne 0x65184b
cmp dword [edi + 0x14], esi
je 0x6518a6
xor eax, eax
test dword [esp + 0x14], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jne 0x651874
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x3c]
push edx
call eax
mov eax, dword [edi + 0x18]
cmp eax, esi
je 0x65188d
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax + 4], edx
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x6518a6
mov ebp, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [eax + ebp], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + ebp + 4], edx
lea esi, [esp + 0x78]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, ebx
and eax, 0xefffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov eax, dword [esp + 0x20]
mov dword [edi + 0x14], eax
mov eax, ebx
call fcn.0065c070
mov edi, dword [esp + 0x78]
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00639180
test al, al
je 0x651d94
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 8]
mov ecx, dword [ecx]
add eax, eax
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x38]
lea edi, [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.006b55a0
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x38]
push ecx
mov edx, edi
xor esi, esi
push edx
push eax
mov dword [esp + 0x48], esi
mov word [esp + 0x44], si
mov word [esp + 0x46], si
call fcn.00638a30
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov word [esp + 0x28], si
mov word [esp + 0x2a], si
call fcn.0065b900
lea edx, [esp + 0x30]
call fcn.0065b040
lea edx, [esp + 0x28]
call fcn.0065b040
cmp dword [0x100ef594], esi
mov dword [esp + 0x78], eax
je 0x6519ea
lea esi, [esp + 0x40]
call fcn.006e7210
mov esi, eax
push 0x100d1768
call fcn.006df5f0
push 0x100d1af4
call fcn.006df5f0
push 0x100d1ed4
call fcn.006df5f0
lea eax, [esp + 0x30]
mov edi, esi
call fcn.006e73c0
mov esi, eax
push 0x100d1ee8
call fcn.006df5f0
lea eax, [esp + 0x28]
mov edi, esi
call fcn.006e73c0
push 0x100d1420
mov esi, eax
call fcn.006df5f0
lea eax, [esp + 0x40]
call fcn.006e7250
cmp dword [esp + 0x20], 1
jne 0x651cf8
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 4]
push eax
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x6c], 0x40
call ecx
jmp 0x651d5a
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
test eax, eax
je 0x651a52
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xc0000034
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
test eax, eax
je 0x651a76
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xc0000056
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
test eax, eax
je 0x6518d0
mov edx, dword [ebx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp ecx, esi
je 0x651bfb
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x38], 0x100cf494
mov word [esp + 0x34], si
mov word [esp + 0x36], si
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x34]
push edx
call eax
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x651ade
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x78]
mov dword [eax + ecx], edx
cmp dword [ebp + 8], 4
jne 0x651af0
cmp dword [0x100ef550], esi
je 0x651b70
mov ecx, dword [ebx + 4]
cmp ecx, 0xffffffff
je 0x651b10
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov edi, eax
mov ecx, dword [ebx + 0x10]
cmp ecx, 0xffffffff
je 0x651b30
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov edi, eax
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
je 0x651b50
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov edi, eax
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x651b70
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov edi, eax
or eax, 0xffffffff
cmp dword [ebx + 0x18], eax
jne 0x651b7d
cmp dword [ebx + 0x14], eax
je 0x651bd8
test dword [esp + 0x78], 0x10
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
jne 0x651ba4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x34]
push edx
call eax
mov eax, dword [ebx + 0x18]
cmp eax, 0xffffffff
je 0x651bbe
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + eax + 4], edx
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
je 0x651bd8
mov ebp, dword [ebp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [eax + ebp], ecx
mov edx, dword [esp + 0x3c]
mov dword [eax + ebp + 4], edx
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, edi
and eax, 0xefffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0x20], esi
je 0x651cce
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
lea edx, [esp + 0x38]
push edx
call eax
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x78]
push edx
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x4c], eax
call fcn.006562f0
mov ebx, eax
lea eax, [esp + 0x38]
call fcn.006b5660
lea esi, [esp + 0x28]
call fcn.00675d90
test ebx, ebx
jne 0x651ca7
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1c], 0xffffffff
je 0x651ca7
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
add eax, ecx
and dword [eax], 0xffffffef
lea esi, [esp + 0x20]
call fcn.00675d90
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
lea esi, [esp + 0x20]
call fcn.00675d90
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, 0xc0000229
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edx
call fcn.00651020
test eax, eax
je 0x651d1c
mov esi, 0xc0000034
jmp 0x651d5c
xor ecx, ecx
cmp dword [esp + 0x78], ecx
lea eax, [esp + 0x28]
jne 0x651d2c
lea eax, [esp + 0x30]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 4]
push edx
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x54], 0x40
call eax
mov esi, eax
lea eax, [esp + 0x28]
call fcn.006b5660
lea eax, [esp + 0x38]
call fcn.006b5660
lea eax, [esp + 0x30]
call fcn.006b5660
lea eax, [esp + 0x18]
call fcn.006b5660
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
xor esi, esi
cmp dword [esp + 0x20], esi
je 0x651f0b
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], si
mov word [esp + 0x1a], si
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edx
call fcn.00634340
mov ecx, eax
lea eax, [esp + 0x18]
lea edi, [esp + 0x38]
call fcn.0065b900
lea eax, [esp + 0x30]
call fcn.006b5660
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], ecx
call fcn.00651020
test eax, eax
je 0x651e2c
lea eax, [esp + 0x18]
call fcn.006b5660
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
cmp dword [esp + 0x20], 1
mov dword [esp + 0x58], 0x18
mov dword [esp + 0x64], 0x40
jne 0x651e87
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 4]
push ecx
call edx
mov edi, eax
lea eax, [esp + 0x18]
call fcn.006b5660
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 4]
push edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call eax
mov edi, eax
cmp edi, esi
jne 0x651ecd
lea eax, [esp + 0x18]
call fcn.006b5660
lea esi, [esp + 0x7c]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
cmp edi, 0xc0000034
je 0x651edd
cmp edi, 0xc000003a
jne 0x651e69
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 4]
push ecx
push edx
call eax
mov edi, eax
lea eax, [esp + 0x18]
call fcn.006b5660
lea esi, [esp + 0x7c]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 4]
push ecx
push edx
call eax
lea esi, [esp + 0x7c]
mov edi, eax
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8