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

Disassembly:
push 0xffffffffffffffff
push 0x5764d2
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov ebx, 1
xor esi, esi
push ebx
lea edi, [esp + 0x28]
mov dword [esp + 0x20], esi
call fcn.004f5740
mov dword [esp + 0x10c], esi
cmp dword [ebp + 0x10], ebx
je 0x51530a
cmp dword [esp + 0x34], ebx
je 0x515306
mov edx, edi
mov eax, ebp
call fcn.004f86b0
jmp 0x515322
mov eax, ebx
jmp 0x515322
cmp dword [esp + 0x34], ebx
je 0x515315
or eax, 0xffffffff
jmp 0x515322
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.004f86b0
neg eax
cmp eax, esi
lea ecx, [esp + 0x24]
setle bl
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d6df0
test bl, bl
jne 0x51589e
cmp dword [ebp + 8], esi
jbe 0x515351
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
jne 0x51538b
push 2
lea edi, [esp + 0x3c]
call fcn.004f5740
mov edx, edi
mov eax, ebp
mov dword [esp + 0x10c], 1
call fcn.004d6e80
mov ecx, edi
mov bl, al
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d6df0
mov al, bl
jmp 0x5158a0
push 3
lea edi, [esp + 0x54]
call fcn.004f5740
push 4
lea edi, [esp + 0x28]
mov dword [esp + 0x110], 2
mov dword [esp + 0x24], esi
call fcn.004f5740
lea esi, [esp + 0x38]
lea eax, [esp + 0x50]
mov byte [esp + 0x10c], 3
call fcn.004e8490
mov ecx, edi
push ecx
lea edx, [esp + 0x7c]
push edx
mov edi, eax
mov byte [esp + 0x114], 4
call fcn.004d6fd0
push eax
mov ecx, ebp
mov byte [esp + 0x118], 5
call fcn.00516ac0
mov esi, eax
add esp, 0xc
cmp esi, 1
lea ecx, [esp + 0x78]
sete bl
mov byte [esp + 0x10c], 4
call fcn.004d6df0
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 3
call fcn.004d6df0
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 2
call fcn.004d6df0
test bl, bl
je 0x5154f0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 0x40
jne 0x51544f
mov edi, ebp
call fcn.004f88d0
test al, al
jne 0x51588a
lea eax, [esp + 0x50]
push eax
call fcn.004f7560
lea ecx, [esp + 0x50]
push ecx
call fcn.004f7560
push 4
lea edi, [esp + 0x28]
call fcn.004f5740
lea esi, [esp + 0x38]
lea eax, [esp + 0x50]
mov byte [esp + 0x10c], 3
call fcn.004e8490
mov edx, edi
push edx
lea ecx, [esp + 0x7c]
push ecx
mov edi, eax
mov byte [esp + 0x114], 4
call fcn.004d6fd0
push eax
mov ecx, ebp
mov byte [esp + 0x118], 5
call fcn.00516ac0
mov esi, eax
add esp, 0xc
cmp esi, 1
lea ecx, [esp + 0x78]
sete bl
mov byte [esp + 0x10c], 4
call fcn.004d6df0
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 3
call fcn.004d6df0
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 2
call fcn.004d6df0
test bl, bl
jne 0x515432
test esi, esi
je 0x51588a
push 1
lea edi, [esp + 0x3c]
call fcn.004f5740
mov edx, edi
push edx
lea eax, [esp + 0x90]
push eax
mov edi, ebp
mov byte [esp + 0x114], 6
call fcn.004d6f70
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 8
call fcn.004d6df0
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
xor esi, esi
mov eax, esi
shr eax, 5
cmp eax, edi
jae 0x515558
mov eax, dword [edx + eax*4]
mov ecx, esi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x51555b
inc esi
jmp 0x515541
push esi
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x58], esi
call fcn.004e8350
push ebp
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x11c], 9
call fcn.00516cc0
add esp, 0x10
push 2
lea edi, [esp + 0x7c]
mov byte [esp + 0x110], 0xa
call fcn.004f5740
mov byte [esp + 0x10c], 0xb
mov ebx, 1
mov edx, edi
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.004d6e80
test al, al
jne 0x515623
push 2
lea edi, [esp + 0x3c]
call fcn.004f5740
mov eax, edi
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x110], 0xc
push ecx
mov edi, ebp
mov dword [esp + 0x24], 3
call fcn.004d6fd0
add esp, 8
mov edx, eax
mov dword [esp + 0x10c], 0xd
mov ebx, 7
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.004d6e80
mov byte [esp + 0x1b], 0
test al, al
je 0x515628
mov byte [esp + 0x1b], 1
mov dword [esp + 0x10c], 0xc
test bl, 4
je 0x515648
and ebx, 0xfffffffb
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.004d6df0
mov dword [esp + 0x10c], 0xb
test bl, 2
je 0x515668
and ebx, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
call fcn.004d6df0
mov dword [esp + 0x10c], 0xa
test bl, 1
je 0x515681
lea ecx, [esp + 0x78]
call fcn.004d6df0
cmp byte [esp + 0x1b], 0
je 0x5156dc
lea ecx, [esp + 0x64]
mov byte [esp + 0x10c], 9
call fcn.004d6df0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 8
call fcn.004d6df0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10c], 2
call fcn.004d6df0
lea ecx, [esp + 0x50]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d6df0
mov al, 1
jmp 0x5158a0
mov dword [esp + 0x20], 1
cmp esi, 1
jbe 0x515851
push 2
lea edi, [esp + 0x3c]
call fcn.004f5740
lea esi, [esp + 0xc8]
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0xe
call fcn.004e8490
mov edx, edi
push edx
lea ecx, [esp + 0xe0]
push ecx
mov edi, eax
mov byte [esp + 0x114], 0xf
call fcn.004d6fd0
lea edx, [esp + 0xbc]
push ebp
push edx
mov ecx, eax
mov byte [esp + 0x11c], 0x10
call fcn.004d70f0
add esp, 0x10
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
mov byte [esp + 0x110], 0x11
call fcn.004f5a90
lea ecx, [esp + 0xb4]
mov byte [esp + 0x10c], 0x10
call fcn.004d6df0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x10c], 0xf
call fcn.004d6df0
mov ecx, esi
mov byte [esp + 0x10c], 0xe
call fcn.004d6df0
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 0xa
call fcn.004d6df0
push 2
lea edi, [esp + 0x7c]
call fcn.004f5740
mov edx, edi
push edx
lea eax, [esp + 0xf4]
push eax
mov edi, ebp
mov byte [esp + 0x114], 0x12
call fcn.004d6fd0
add esp, 8
mov edx, eax
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0x13
call fcn.004d6e80
lea ecx, [esp + 0xf0]
mov bl, al
mov byte [esp + 0x10c], 0x12
call fcn.004d6df0
lea ecx, [esp + 0x78]
mov byte [esp + 0x10c], 0xa
call fcn.004d6df0
test bl, bl
jne 0x515688
push 2
lea edi, [esp + 0x28]
call fcn.004f5740
mov edx, edi
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0x14
call fcn.004d6e80
mov ecx, edi
mov bl, al
mov byte [esp + 0x10c], 0xa
call fcn.004d6df0
test bl, bl
jne 0x515851
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x4c]
jb 0x5156ed
lea ecx, [esp + 0x64]
mov byte [esp + 0x10c], 9
call fcn.004d6df0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 8
call fcn.004d6df0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10c], 2
call fcn.004d6df0
lea ecx, [esp + 0x50]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d6df0
xor al, al
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret