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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
add edi, 0x14
mov dword [esp + 0x70], ecx
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ebx, dword [eax + 8]
add eax, 8
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x6431ae
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [edx + 0x74]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x64332a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x64332a
movzx eax, word [edi + 8]
mov ecx, dword [edi]
add eax, eax
mov word [esp + 0xc0], ax
mov word [esp + 0xc2], ax
mov edx, dword [esp + 0xc0]
push 8
lea eax, [esp + 0xd4]
mov dword [esp + 0xd8], ecx
push eax
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xdc], edx
call dword [0x100ef7ec]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call edx
lea esi, [esp + 0xa8]
lea eax, [esp + 0x98]
call fcn.006b53e0
test eax, eax
jne 0x64330e
mov edx, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x9c]
xor esi, esi
push ecx
push edx
mov dword [esp + 0x60], esi
mov word [esp + 0x5c], si
mov word [esp + 0x5e], si
call fcn.00638a30
lea eax, [esp + 0x74]
lea ecx, [esp + 0x50]
lea edi, [esp + 0xa8]
mov dword [esp + 0x78], esi
mov word [esp + 0x74], si
mov word [esp + 0x76], si
call fcn.0065b900
cmp dword [0x100ef594], esi
je 0x6432f1
lea esi, [esp + 0xf8]
call fcn.006e7210
mov esi, eax
push 0x100d1a98
call fcn.006df5f0
push 0x100d1ae0
call fcn.006df5f0
lea eax, [esp + 0x74]
mov edi, esi
call fcn.006e73c0
push 0x100d1420
mov esi, eax
call fcn.006df5f0
lea eax, [esp + 0xf8]
call fcn.006e7250
lea eax, [esp + 0x74]
call fcn.00650ed0
lea eax, [esp + 0x74]
call fcn.006b5660
lea eax, [esp + 0x50]
call fcn.006b5660
jmp 0x64331a
lea eax, [esp + 0x98]
call fcn.00650ed0
lea eax, [esp + 0xa8]
call fcn.006b5660
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
cmp eax, 3
je 0x64390b
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, ebx
call edx
test eax, eax
jne 0x643988
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
test eax, eax
jne 0x6439b3
mov esi, dword [ebp + 0x10]
cmp dword [esi + 4], 3
jne 0x6434ac
mov eax, ebx
call fcn.0065c070
test eax, eax
mov dword [esp + 0x14], eax
je 0x6434ac
cmp eax, 1
je 0x643a1d
cmp eax, 2
je 0x643395
cmp eax, 3
jne 0x6434ac
xor esi, esi
mov dword [esp + 0x20], esi
mov word [esp + 0x1c], si
mov word [esp + 0x1e], si
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x108]
mov dword [esp + 0xcc], edx
call fcn.00634340
mov ecx, eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0xc8]
call fcn.0065b900
lea eax, [esp + 0xb0]
call fcn.006b5660
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0xec], ecx
call fcn.00651020
test eax, eax
jne 0x643ae5
mov ecx, dword [0x100ef48c]
lea edx, [esp + 0x1c]
add ecx, 0x220
mov dword [esp + 0x84], edx
mov edx, dword [ecx]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x80], 0x18
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], 0x40
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call eax
call eax
mov edi, eax
cmp edi, esi
je 0x643b05
cmp edi, 0xc0000034
je 0x64348f
cmp edi, 0xc000003a
jne 0x643b74
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x643b3b
lea eax, [esp + 0x1c]
call fcn.006b5660
mov edi, dword [esp + 0x18]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x70], 1
je 0x6434bf
cmp dword [esi + 4], 0
jne 0x643bc6
cmp dword [esi + 4], 0
je 0x643515
mov eax, dword [esp + 0x70]
cmp dword [eax + 8], 0
jne 0x643515
mov ecx, dword [0x100ef48c]
mov eax, dword [eax + 4]
lea edx, [esp + 0x104]
push edx
push 0x38
lea edx, [esp + 0x118]
push edx
mov edx, dword [ecx + 0xb68]
add ecx, 0xb68
push 0
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
jne 0x643515
test dword [esp + 0x114], 0x12010000
je 0x643be4
lea esi, [esp + 0x34]
call fcn.006942f0
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
mov dword [esp + 0x18], ebx
call edx
lea esi, [esp + 0x5c]
call fcn.00634560
mov eax, edi
call fcn.00634250
test eax, eax
mov esi, ebx
je 0x6437e8
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
jne 0x64357d
lea eax, [esp + 0x60]
call fcn.0065b0c0
test eax, eax
je 0x643bfb
cmp dword [esp + 0x68], 1
jne 0x643642
mov edx, dword [edi]
mov eax, dword [esp + 0x64]
mov ecx, dword [0x100ef48c]
sub eax, edx
mov dword [esp + 0xa4], edx
mov dx, word [esp + 0x60]
sar eax, 1
shr dx, 1
add ax, dx
add ax, ax
mov word [esp + 0xa0], ax
mov word [esp + 0xa2], ax
lea eax, [esp + 0xa0]
mov dword [esp + 0x84], eax
lea edx, [esp + 0x148]
add ecx, 0x4c0
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x80]
push eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], 0x40
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call eax
call eax
test eax, eax
jne 0x643c8d
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
push edx
lea esi, [esp + 0x34]
call fcn.006b55f0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea esi, [esp + 0x2c]
call fcn.006b55f0
jmp 0x6436af
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
cmp eax, 1
je 0x643cc8
cmp dword [esp + 0x5c], ebx
je 0x643679
lea eax, [esp + 0x60]
push eax
call fcn.0065bcf0
add esp, 4
test eax, eax
je 0x643d03
mov dword [esp + 0x40], 0x10
jmp 0x64361d
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xe8]
mov edx, edi
call fcn.006343a0
call fcn.0065b1d0
add esp, 0x10
cmp eax, ebx
je 0x643d03
push 4
lea ecx, [esp + 0x48]
push ecx
call dword [0x100ef7e8]
cmp dword [esp + 0x68], 1
jne 0x643726
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xb8], ecx
mov ecx, dword [eax + 0x74]
push 3
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xac]
push eax
lea eax, [esp + 0x78]
push eax
call edx
push eax
lea esi, [esp + 0x48]
call fcn.006521c0
lea esi, [esp + 0x6c]
jmp 0x64378c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
and al, 0x10
neg al
mov dword [esp + 0xf4], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x74]
mov dword [esp + 0x48], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xac]
sbb eax, eax
neg eax
add eax, 1
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea esi, [esp + 0x48]
call fcn.006521c0
lea esi, [esp + 0x3c]
call fcn.00675d90
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00654340
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x18]
call fcn.006521c0
lea esi, [esp + 0x44]
call fcn.00675d90
lea eax, [esp + 0x2c]
call fcn.006b5660
lea eax, [esp + 0x24]
call fcn.006b5660
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x5c]
call fcn.00634250
test eax, eax
mov esi, dword [esp + 0x14]
jne 0x643544
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
cmp eax, 3
ja 0x643e02
jmp dword [eax*4 + 0x10022e2c]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x643929
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
push ecx
push edx
lea edi, [esp + 0x44]
lea ebx, [esp + 0x74]
call fcn.00642920
cmp dword [esp + 0x3c], 0
je 0x64396d
mov edi, dword [ebp + 0x10]
call fcn.00651f80
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x6c]
push eax
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0x18]
call fcn.006344c0
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
neg esi
sbb esi, esi
and esi, 6
push ebx
add esi, 0xc0000034
call ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x48], 0xffffffff
call fcn.00634340
mov esi, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 4]
mov edi, ebx
call fcn.00642a90
cmp dword [esp + 0x40], 0
je 0x643a06
mov edi, esi
call fcn.00651f80
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
mov esi, eax
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x3c]
push ebx
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
mov dword [esp + 0x54], esi
mov word [esp + 0x50], si
mov word [esp + 0x52], si
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xd8]
mov dword [esp + 0x4c], edx
call fcn.00634340
mov ecx, eax
lea eax, [esp + 0x50]
lea edi, [esp + 0x48]
call fcn.0065b900
lea eax, [esp + 0xb0]
call fcn.006b5660
mov ecx, dword [0x100ef48c]
lea eax, [esp + 0x50]
add ecx, 0x220
mov dword [esp + 0x84], eax
mov eax, dword [ecx]
lea edx, [esp + 0x7c]
push edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x80], 0x18
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], 0x40
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call edx
call eax
mov edi, eax
lea eax, [esp + 0x50]
call fcn.006b5660
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x1c]
call fcn.006b5660
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x48]
call fcn.00650ed0
lea eax, [esp + 0x1c]
call fcn.006b5660
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 3
jne 0x643ba6
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 8]
cmp eax, esi
je 0x643b91
cmp word [eax], si
je 0x643b91
mov ecx, dword [0x100ef48c]
lea eax, [esp + 0x110]
push eax
add ecx, 0x370
push edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
call eax
mov edi, eax
cmp edi, esi
je 0x643b91
lea eax, [esp + 0x1c]
call fcn.006b5660
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
jmp 0x643b15
lea eax, [esp + 0x1c]
call fcn.006b5660
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
call fcn.00651f80
lea esi, [esp + 0x10]
mov edi, eax
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000022
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x100ef594], ebx
je 0x643c52
lea esi, [esp + 0xf8]
call fcn.006e7210
mov esi, eax
push 0x100d1af4
call fcn.006df5f0
push 0x100d1554
call fcn.006df5f0
lea eax, [esp + 0x60]
mov edi, esi
call fcn.006e73c0
mov esi, eax
push 0x100d1b38
call fcn.006df5f0
push 0x100d1420
call fcn.006df5f0
lea eax, [esp + 0xf8]
call fcn.006e7250
lea eax, [esp + 0x2c]
call fcn.006b5660
lea eax, [esp + 0x24]
call fcn.006b5660
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00640350
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000003b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x2c]
call fcn.006b5660
lea eax, [esp + 0x24]
call fcn.006b5660
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00640350
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x2c]
call fcn.006b5660
lea eax, [esp + 0x24]
call fcn.006b5660
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00640350
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000003a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x5c]
mov eax, edi
call fcn.00634250
test eax, eax
je 0x643d1d
cmp dword [esp + 0x68], ebx
jne 0x643d1d
mov ebx, 1
lea eax, [esp + 0x2c]
call fcn.006b5660
lea eax, [esp + 0x24]
call fcn.006b5660
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00640350
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, ebx
neg eax
sbb eax, eax
and eax, 6
add eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00640350
lea esi, [esp + 0x10]
call fcn.00675d90
pop edi
pop esi
mov eax, 0xc000000d
pop ebx
mov esp, ebp
pop ebp
ret 0xc