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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10043d54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
push esi
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x344], ebx
cmp dword [0x10055090], 8
mov eax, dword [0x1005507c]
jae 0x651c73
mov eax, 0x1005507c
lea ecx, [esp + 0x34]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x10055058]
call dword [0x1004502c]
test eax, eax
je 0x651cb9
or dword [esp + 0x344], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x651cb2
push dword [esp + 0x28]
call fcn.00652a2f
push dword [esp + 0x24]
call fcn.006710c8
pop ecx
xor al, al
jmp 0x6523be
push dword [esp + 0x34]
mov ecx, dword [0x10045008]
lea eax, [esp + 0xb4]
push eax
call fcn.006535c5
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x14c]
push eax
mov byte [esp + 0x35c], 1
mov dword [esp + 0x2c], ebx
push ebx
jmp 0x651ef6
lea eax, [esp + 0x3c]
push eax
push 0xf003f
push ebx
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x44]
call dword [0x1004502c]
test eax, eax
jne 0x651edd
push dword [esp + 0x3c]
mov ecx, dword [0x10045008]
lea eax, [esp + 0xc0]
push eax
call fcn.006535c5
pop ecx
pop ecx
push 4
pop esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push 0x100494dc
push dword [esp + 0x50]
mov dword [esp + 0x30], esi
call dword [0x1004500c]
test eax, eax
jne 0x651ecf
cmp dword [esp + 0x30], esi
jne 0x651ecf
lea eax, [esp + 0xbc]
push eax
call fcn.006535db
pop ecx
call fcn.00646a04
mov dword [esp + 0x54], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x54]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x54]
mov dword [eax], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 8], eax
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x348], 2
call fcn.006525d6
lea eax, [esp + 0x50]
mov byte [esp + 0x344], 1
call fcn.006529f8
push 0x10049534
lea ecx, [esp + 0x98]
call fcn.0063dfe2
mov byte [esp + 0x344], 3
push dword [esp + 0x10]
lea eax, [esp + 0x120]
push eax
call fcn.00647ad3
lea ecx, [esp + 0xd0]
push ecx
mov ebx, eax
mov byte [esp + 0x350], 4
call fcn.00647fd5
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x348], 5
call fcn.00652590
push eax
call fcn.00652638
push 0xffffffffffffffff
push eax
xor ebx, ebx
mov eax, esi
call fcn.0063e3f5
xor edi, edi
push edi
inc ebx
push ebx
lea esi, [esp + 0xd0]
call fcn.0063e1af
push edi
push ebx
lea ecx, [esp + 0x124]
call fcn.0063e0ff
push edi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x34c], bl
call fcn.0063e0ff
push 0x1004953c
lea ecx, [esp + 0x98]
call fcn.0063dfe2
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x348], 6
call fcn.00652590
push eax
call fcn.00652638
mov esi, eax
lea eax, [esp + 0x138]
push eax
call fcn.0067123a
pop ecx
lea ecx, [esp + 0x138]
call fcn.0063e14a
push edi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x34c], bl
call fcn.0063e0ff
xor ebx, ebx
jmp 0x651edd
lea eax, [esp + 0xbc]
push eax
call fcn.006535db
pop ecx
inc dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x14c]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x50]
mov dword [esp + 0x58], 0xff
call dword [0x10045000]
test eax, eax
je 0x651cf5
push 0x1004912c
call dword [0x10045278]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x651f41
push 0x10049544
call fcn.00665ad3
pop ecx
lea eax, [esp + 0xb0]
push eax
call fcn.006535db
pop ecx
jmp 0x651c8f
push ebx
push 2
pop esi
push esi
push esi
call dword [0x1004528c]
mov dword [esp + 0x30], eax
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x38]
mov word [esp + 0x4c], si
mov dword [esp + 0x50], ebx
mov word [esp + 0x4e], bx
call dword [0x10045284]
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov word [esp + 0x40], si
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x50
mov dword [esp + 0x48], eax
call dword [0x10045294]
push 0x10049560
lea ecx, [esp + 0x7c]
mov word [esp + 0x46], ax
call fcn.0063dfe2
push 0x1004956c
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x34c], 7
call fcn.0063eee9
push 0x10049578
lea eax, [esp + 0x7c]
push eax
call fcn.0063eee9
cmp dword [0x100550e0], ebx
jne 0x652004
push 0x10048cb4
lea ecx, [esp + 0xcc]
call fcn.0063dfe2
mov byte [esp + 0x344], 8
mov dword [esp + 0x1c], 1
jmp 0x652009
mov eax, 0x100550cc
push 0xffffffffffffffff
push ebx
lea esi, [esp + 0x80]
call fcn.0063e1f6
mov dword [esp + 0x344], 7
test byte [esp + 0x1c], 1
je 0x652039
push ebx
push 1
lea ecx, [esp + 0xd0]
call fcn.0063e0ff
push 0x10047ee0
lea eax, [esp + 0x7c]
push eax
call fcn.0063eee9
push 0x10049580
lea eax, [esp + 0x7c]
push eax
call fcn.0063eee9
lea eax, [esp + 0x100]
push eax
call fcn.00650d68
pop ecx
mov esi, 0x10047d70
push esi
mov byte [esp + 0x348], 9
call fcn.0066ac20
pop ecx
mov ecx, dword [esp + 0x114]
mov edi, eax
push esi
lea eax, [esp + 0x104]
call fcn.0063efa0
test eax, eax
jne 0x6520b6
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.0063e0ff
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.0063e0ff
jmp 0x651f2e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x108]
lea esi, [esp + 0x80]
call fcn.0063e1f6
push 0x10047ee0
mov eax, esi
push eax
call fcn.0063eee9
push 0x26
mov eax, 0x578
sub eax, dword [esp + 0x90]
pop ecx
xor edx, edx
div ecx
push eax
push 0x10049588
mov dword [esp + 0x20], eax
call fcn.00665ad3
pop ecx
pop ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebx
call fcn.0065257a
cmp eax, ebx
jbe 0x652363
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x60]
call fcn.0063ebc0
mov byte [esp + 0x344], 0xa
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jle 0x6522fa
mov esi, dword [esp + 0x10]
imul esi, esi, 0xc
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x20]
call fcn.0065257a
cmp dword [esp + 0x10], eax
jae 0x6522fa
push 0x1004953c
lea ecx, [esp + 0x120]
call fcn.0063dfe2
lea eax, [esp + 0x20]
mov byte [esp + 0x344], 0xb
call fcn.0065257a
cmp dword [esp + 0x10], eax
jb 0x652181
call fcn.00667b9c
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x11c]
add eax, esi
push ecx
push eax
call fcn.00652638
lea ecx, [esp + 0x94]
push ecx
mov ebx, eax
call fcn.00648092
pop ecx
push 0
push 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x34c], 0xd
call fcn.0063e0ff
push 0x10049534
lea ecx, [esp + 0xcc]
call fcn.0063dfe2
lea eax, [esp + 0x20]
mov byte [esp + 0x344], 0xe
call fcn.0065257a
cmp dword [esp + 0x10], eax
jb 0x6521ea
call fcn.00667b9c
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc8]
add eax, esi
push ecx
push eax
call fcn.00652638
lea ecx, [esp + 0xe4]
push ecx
mov ebx, eax
call fcn.00648092
pop ecx
push 0
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x34c], 0x10
call fcn.0063e0ff
mov ebx, 0x100495a8
push ebx
call fcn.0066ac20
pop ecx
mov ecx, dword [esp + 0xf8]
mov edi, eax
push ebx
lea eax, [esp + 0xe8]
call fcn.0063efa0
test eax, eax
jne 0x652253
push 0x100495ac
jmp 0x65227e
mov ebx, 0x100495b4
push ebx
call fcn.0066ac20
pop ecx
mov ecx, dword [esp + 0xf8]
mov edi, eax
push ebx
lea eax, [esp + 0xe8]
call fcn.0063efa0
test eax, eax
jne 0x6522af
push 0x100495b8
lea eax, [esp + 0x60]
push eax
call fcn.0063eee9
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x9c]
lea esi, [esp + 0x64]
call fcn.0063e1f6
push 0x10047ee0
mov eax, esi
push eax
call fcn.0063eee9
mov esi, dword [esp + 0x1c]
jmp 0x6522b3
dec dword [esp + 0x14]
push 0
push 1
lea ecx, [esp + 0xec]
call fcn.0063e0ff
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x34c], 0xa
call fcn.0063e0ff
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
add esi, 0xc
xor ebx, ebx
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
jl 0x652141
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x652309
lea eax, [esp + 0x60]
push eax
push 0x100495c0
call fcn.00665ad3
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
pop ecx
pop ecx
jae 0x652325
lea eax, [esp + 0x60]
push 0x10
lea ecx, [esp + 0x44]
push ecx
push ebx
push dword [esp + 0x7c]
push eax
push dword [esp + 0x44]
call dword [0x10045270]
push ebx
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x34c], 9
call fcn.0063e0ff
lea eax, [esp + 0x20]
call fcn.0065257a
cmp dword [esp + 0x10], eax
jb 0x652112
push dword [esp + 0x30]
call dword [0x10045288]
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.0063e0ff
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.0063e0ff
lea eax, [esp + 0xb0]
push eax
call fcn.006535db
or dword [esp + 0x348], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
pop ecx
je 0x6523bc
push dword [esp + 0x28]
call fcn.00652a2f
push dword [esp + 0x24]
call fcn.006710c8
pop ecx
mov al, 1
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret