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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606b8f
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x51b902
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0xc], ebx
jne 0x51b32b
call fcn.00449660
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x51b2fe
mov eax, ecx
mov dword [esi + 0xc], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call fcn.005e796e
add esp, 0xc
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x40], 0x6124ac
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
push 0x6122dc
lea ecx, [esp + 0xe4]
mov dword [esp + 0x10c], ebx
call dword [0x610498]
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x34]
push edx
lea edi, [esp + 0x48]
mov byte [esp + 0x110], 1
call fcn.0053db50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 3
call dword [0x6105a0]
mov dword [esp + 0x78], 0x62ca9c
mov dword [esp + 0x7c], 0x6124ac
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
push esi
lea edi, [esp + 0x7c]
mov byte [esp + 0x10c], 4
call fcn.005353a0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x90]
call fcn.0051ba30
mov byte [esp + 0x108], 5
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add ecx, eax
cmp eax, ecx
mov esi, eax
jbe 0x51b426
call dword [0x6105e8]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], esi
lea ebx, [ebx]
mov edx, dword [esp + 0x60]
lea esi, [edx + eax]
cmp eax, esi
jbe 0x51b445
call dword [0x6105e8]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x3c], esi
je 0x51b5b5
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x3c]
add ecx, eax
cmp esi, ecx
jb 0x51b463
call dword [0x6105e8]
mov eax, dword [esp + 0x58]
cmp eax, esi
ja 0x51b46d
sub esi, eax
mov edx, dword [esp + 0x54]
mov esi, dword [edx + esi*4]
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x10]
push eax
call fcn.00454400
mov byte [esp + 0x108], 6
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp edi, eax
mov esi, edi
jbe 0x51b4a5
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x18], eax
jbe 0x51b4bb
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp esi, dword [esp + 0x18]
je 0x51b4ec
cmp esi, eax
jb 0x51b4cb
call dword [0x6105e8]
push esi
lea ecx, [esp + 0x34]
call fcn.0053dc60
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x51b4e7
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
add esi, 0x44
jmp 0x51b4a1
cmp edi, ebx
mov byte [esp + 0x108], 5
je 0x51b585
cmp edi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
je 0x51b57c
jmp 0x51b510
lea ecx, [edi + 0x24]
mov byte [esp + 0x108], 8
call dword [0x6105a0]
lea ecx, [edi + 0x10]
mov byte [esp + 0x108], 7
call fcn.00454500
mov byte [esp + 0x108], 5
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x51b562
mov ebx, dword [edi + 8]
cmp esi, ebx
je 0x51b554
push esi
call fcn.0051d450
add esi, 0x70
cmp esi, ebx
jne 0x51b547
mov ecx, dword [edi + 4]
push ecx
call fcn.005e6954
add esp, 4
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
add edi, 0x44
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
jne 0x51b510
mov edi, dword [esp + 0x20]
push edi
call fcn.005e6954
add esp, 4
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
add edx, eax
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x51b5ab
call dword [0x6105e8]
mov eax, dword [esp + 0x5c]
add dword [esp + 0x3c], 1
jmp 0x51b430
mov dword [esp + 0xac], 0x62ca9c
mov dword [esp + 0xb0], 0x6124ac
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov eax, dword [ebp + 8]
push eax
lea edi, [esp + 0xb0]
mov byte [esp + 0x10c], 9
call fcn.005353a0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0051ba30
mov byte [esp + 0x108], 0xa
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
add edx, eax
cmp eax, edx
mov edi, eax
jbe 0x51b65c
call dword [0x6105e8]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x74]
lea esi, [ecx + eax]
cmp eax, esi
jbe 0x51b675
call dword [0x6105e8]
mov eax, dword [esp + 0x70]
cmp edi, esi
je 0x51b7ed
mov edx, dword [esp + 0x74]
add edx, eax
cmp edi, edx
mov esi, edi
jb 0x51b68f
call dword [0x6105e8]
mov eax, dword [esp + 0x6c]
cmp eax, edi
ja 0x51b69b
mov esi, edi
sub esi, eax
mov eax, dword [esp + 0x68]
mov esi, dword [eax + esi*4]
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x10]
push edx
call fcn.00454400
mov byte [esp + 0x108], 0xb
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp edi, eax
mov esi, edi
jbe 0x51b6d3
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov ebx, eax
jbe 0x51b6e7
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp esi, ebx
je 0x51b716
cmp esi, eax
jb 0x51b6f5
call dword [0x6105e8]
push esi
lea ecx, [esp + 0x34]
call fcn.0053dc60
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x51b711
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
add esi, 0x44
jmp 0x51b6cf
xor ecx, ecx
cmp edi, ecx
mov byte [esp + 0x108], 0xa
je 0x51b7b7
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edi
je 0x51b7ac
xor ebx, ebx
jmp 0x51b740
lea ecx, [edi + 0x24]
mov byte [esp + 0x108], 0xd
call dword [0x6105a0]
lea ecx, [edi + 0x10]
mov byte [esp + 0x108], 0xc
call fcn.00454500
mov byte [esp + 0x108], 0xa
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x51b792
mov ebx, dword [edi + 8]
cmp esi, ebx
je 0x51b784
push esi
call fcn.0051d450
add esi, 0x70
cmp esi, ebx
jne 0x51b777
mov eax, dword [edi + 4]
push eax
call fcn.005e6954
add esp, 4
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
add edi, 0x44
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
jne 0x51b740
mov edi, dword [esp + 0x20]
push edi
call fcn.005e6954
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x74]
add ecx, eax
cmp dword [esp + 0x3c], ecx
jb 0x51b7dd
call dword [0x6105e8]
mov eax, dword [esp + 0x70]
add dword [esp + 0x3c], 1
mov edi, dword [esp + 0x3c]
xor ebx, ebx
jmp 0x51b660
mov eax, dword [esp + 0x4c]
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
mov dword [esp + 0x18], eax
je 0x51b855
xor edi, edi
cmp eax, ebx
jbe 0x51b837
push eax
call fcn.005e693a
add esp, 4
cmp dword [esi + 4], ebx
mov edi, eax
jbe 0x51b833
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x51b833
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
cmp eax, edx
jb 0x51b827
mov eax, edx
push eax
push ecx
push edi
call dword [0x610618]
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x51b84b
push ecx
call fcn.005e6a6c
mov eax, dword [esp + 0x50]
add esp, 4
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edi
mov dword [esi + 4], edx
mov ecx, dword [esi + 4]
cmp eax, ecx
ja 0x51b85e
mov ecx, eax
push eax
mov eax, dword [esp + 0x4c]
mov edx, esi
mov dword [edx + 0xc], ecx
mov ecx, dword [edx + 8]
push eax
push ecx
call fcn.005e796e
add esp, 0xc
lea esi, [esp + 0x64]
mov byte [esp + 0x108], 9
call fcn.004528d0
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0x10c], 5
call fcn.00535290
lea esi, [esp + 0x50]
mov byte [esp + 0x108], 4
call fcn.004528d0
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x10c], 3
call fcn.00535290
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov esi, eax
je 0x51b8e9
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x51b8e0
push eax
call dword [0x6103cc]
test eax, eax
je 0x51b8e0
mov dword [esi], 0xffffffff
push esi
call fcn.005e6954
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x40], 0x6124ac
je 0x51b902
push eax
call fcn.005e6a6c
add esp, 4
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret