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

Disassembly:
push 0xffffffffffffffff
push 0x56fd32
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
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.004f0320
mov dword [esp + 0x10c], esi
cmp dword [ebp + 0x10], ebx
je 0x50feda
cmp dword [esp + 0x34], ebx
je 0x50fed6
mov edx, edi
mov eax, ebp
call fcn.004f3290
jmp 0x50fef2
mov eax, ebx
jmp 0x50fef2
cmp dword [esp + 0x34], ebx
je 0x50fee5
or eax, 0xffffffff
jmp 0x50fef2
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.004f3290
neg eax
cmp eax, esi
lea ecx, [esp + 0x24]
setle bl
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d1a40
test bl, bl
jne 0x51046e
cmp dword [ebp + 8], esi
jbe 0x50ff21
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
jne 0x50ff5b
push 2
lea edi, [esp + 0x3c]
call fcn.004f0320
mov edx, edi
mov eax, ebp
mov dword [esp + 0x10c], 1
call fcn.004d1ad0
mov ecx, edi
mov bl, al
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d1a40
mov al, bl
jmp 0x510470
push 3
lea edi, [esp + 0x54]
call fcn.004f0320
push 4
lea edi, [esp + 0x28]
mov dword [esp + 0x110], 2
mov dword [esp + 0x24], esi
call fcn.004f0320
lea esi, [esp + 0x38]
lea eax, [esp + 0x50]
mov byte [esp + 0x10c], 3
call fcn.004e3070
mov ecx, edi
push ecx
lea edx, [esp + 0x7c]
push edx
mov edi, eax
mov byte [esp + 0x114], 4
call fcn.004d1c20
push eax
mov ecx, ebp
mov byte [esp + 0x118], 5
call fcn.00511690
mov esi, eax
add esp, 0xc
cmp esi, 1
lea ecx, [esp + 0x78]
sete bl
mov byte [esp + 0x10c], 4
call fcn.004d1a40
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 3
call fcn.004d1a40
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 2
call fcn.004d1a40
test bl, bl
je 0x5100c0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 0x40
jne 0x51001f
mov edi, ebp
call fcn.004f34b0
test al, al
jne 0x51045a
lea eax, [esp + 0x50]
push eax
call fcn.004f2140
lea ecx, [esp + 0x50]
push ecx
call fcn.004f2140
push 4
lea edi, [esp + 0x28]
call fcn.004f0320
lea esi, [esp + 0x38]
lea eax, [esp + 0x50]
mov byte [esp + 0x10c], 3
call fcn.004e3070
mov edx, edi
push edx
lea ecx, [esp + 0x7c]
push ecx
mov edi, eax
mov byte [esp + 0x114], 4
call fcn.004d1c20
push eax
mov ecx, ebp
mov byte [esp + 0x118], 5
call fcn.00511690
mov esi, eax
add esp, 0xc
cmp esi, 1
lea ecx, [esp + 0x78]
sete bl
mov byte [esp + 0x10c], 4
call fcn.004d1a40
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 3
call fcn.004d1a40
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 2
call fcn.004d1a40
test bl, bl
jne 0x510002
test esi, esi
je 0x51045a
push 1
lea edi, [esp + 0x3c]
call fcn.004f0320
mov edx, edi
push edx
lea eax, [esp + 0x90]
push eax
mov edi, ebp
mov byte [esp + 0x114], 6
call fcn.004d1bc0
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 8
call fcn.004d1a40
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
xor esi, esi
mov eax, esi
shr eax, 5
cmp eax, edi
jae 0x510128
mov eax, dword [edx + eax*4]
mov ecx, esi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x51012b
inc esi
jmp 0x510111
push esi
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x58], esi
call fcn.004e2f30
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.00511890
add esp, 0x10
push 2
lea edi, [esp + 0x7c]
mov byte [esp + 0x110], 0xa
call fcn.004f0320
mov byte [esp + 0x10c], 0xb
mov ebx, 1
mov edx, edi
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.004d1ad0
test al, al
jne 0x5101f3
push 2
lea edi, [esp + 0x3c]
call fcn.004f0320
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.004d1c20
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.004d1ad0
mov byte [esp + 0x1b], 0
test al, al
je 0x5101f8
mov byte [esp + 0x1b], 1
mov dword [esp + 0x10c], 0xc
test bl, 4
je 0x510218
and ebx, 0xfffffffb
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.004d1a40
mov dword [esp + 0x10c], 0xb
test bl, 2
je 0x510238
and ebx, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
call fcn.004d1a40
mov dword [esp + 0x10c], 0xa
test bl, 1
je 0x510251
lea ecx, [esp + 0x78]
call fcn.004d1a40
cmp byte [esp + 0x1b], 0
je 0x5102ac
lea ecx, [esp + 0x64]
mov byte [esp + 0x10c], 9
call fcn.004d1a40
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 8
call fcn.004d1a40
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10c], 2
call fcn.004d1a40
lea ecx, [esp + 0x50]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d1a40
mov al, 1
jmp 0x510470
mov dword [esp + 0x20], 1
cmp esi, 1
jbe 0x510421
push 2
lea edi, [esp + 0x3c]
call fcn.004f0320
lea esi, [esp + 0xc8]
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0xe
call fcn.004e3070
mov edx, edi
push edx
lea ecx, [esp + 0xe0]
push ecx
mov edi, eax
mov byte [esp + 0x114], 0xf
call fcn.004d1c20
lea edx, [esp + 0xbc]
push ebp
push edx
mov ecx, eax
mov byte [esp + 0x11c], 0x10
call fcn.004d1d40
add esp, 0x10
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
mov byte [esp + 0x110], 0x11
call fcn.004f0670
lea ecx, [esp + 0xb4]
mov byte [esp + 0x10c], 0x10
call fcn.004d1a40
lea ecx, [esp + 0xdc]
mov byte [esp + 0x10c], 0xf
call fcn.004d1a40
mov ecx, esi
mov byte [esp + 0x10c], 0xe
call fcn.004d1a40
lea ecx, [esp + 0x38]
mov byte [esp + 0x10c], 0xa
call fcn.004d1a40
push 2
lea edi, [esp + 0x7c]
call fcn.004f0320
mov edx, edi
push edx
lea eax, [esp + 0xf4]
push eax
mov edi, ebp
mov byte [esp + 0x114], 0x12
call fcn.004d1c20
add esp, 8
mov edx, eax
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0x13
call fcn.004d1ad0
lea ecx, [esp + 0xf0]
mov bl, al
mov byte [esp + 0x10c], 0x12
call fcn.004d1a40
lea ecx, [esp + 0x78]
mov byte [esp + 0x10c], 0xa
call fcn.004d1a40
test bl, bl
jne 0x510258
push 2
lea edi, [esp + 0x28]
call fcn.004f0320
mov edx, edi
lea eax, [esp + 0x64]
mov byte [esp + 0x10c], 0x14
call fcn.004d1ad0
mov ecx, edi
mov bl, al
mov byte [esp + 0x10c], 0xa
call fcn.004d1a40
test bl, bl
jne 0x510421
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x4c]
jb 0x5102bd
lea ecx, [esp + 0x64]
mov byte [esp + 0x10c], 9
call fcn.004d1a40
lea ecx, [esp + 0xa0]
mov byte [esp + 0x10c], 8
call fcn.004d1a40
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10c], 2
call fcn.004d1a40
lea ecx, [esp + 0x50]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004d1a40
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