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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9054
push 0x478bde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x58], edx
push esp
push ecx
call fcn.00508ea0
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x50a1aa
mov esi, dword [ebp - 0x48]
mov eax, dword [esi]
cmp eax, 8
je 0x50aabf
cmp eax, 0xa
je 0x50aabf
cmp eax, 0xc
je 0x50aabf
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x50a199
mov eax, dword [esi + 0x37e0]
test eax, eax
je 0x50a7f8
push esp
push esi
call fcn.0050c940
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x50a1e3
mov eax, dword [ebp - 0x50]
test eax, eax
jl 0x50a8bf
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3848]
mov dword [ebp - 0x38], edx
call dword [edx + 0x18]
mov eax, dword [ebp - 0x50]
mov esp, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x68], 1
mov eax, dword [ecx + 0x58]
cmp eax, 1
je 0x50a20e
cmp eax, 5
je 0x50a20e
mov eax, dword [ecx + 0x34]
cmp eax, 4
je 0x50a20e
cmp eax, 0xff
je 0x50a20e
cmp eax, 3
jne 0x50a215
mov dword [ecx + 0x68], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ecx + 0x37c0], eax
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x50a9f3
cmp eax, 1
je 0x50a916
cmp eax, 2
je 0x50a46e
cmp eax, 3
jne 0x50a359
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx], 0
mov esi, dword [ecx + 0x37cc]
mov edx, 2
mov dword [esi + 4], edx
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x37cc]
mov eax, 1
mov dword [ebx + 0x10], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x14], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x18], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x20], edx
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x24], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x28], eax
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0x30], 3
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0x34], edx
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0x38], edx
mov eax, dword [ecx + 0x3714]
test eax, eax
jne 0x50a34b
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x50a317
mov edx, dword [ecx + 0x37cc]
xor eax, eax
mov dword [edx + 0xc], eax
mov ebx, dword [ecx + 0x37cc]
mov esi, 1
mov dword [ebx + 0x1c], esi
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 0x2c], esi
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov eax, dword [ecx + 0x37cc]
xor esi, esi
mov dword [eax + 0xc], esi
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x1c], esi
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x2c], esi
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 0x3c], esi
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
cmp eax, 4
jne 0x50a540
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx], 0
mov esi, dword [ecx + 0x37cc]
mov edx, 2
mov dword [esi + 4], edx
mov edi, dword [ecx + 0x37cc]
mov eax, 1
mov dword [edi + 8], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x10], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x14], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x18], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x20], edx
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x24], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x28], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x30], 3
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x34], edx
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x38], eax
mov eax, dword [ecx + 0x3714]
test eax, eax
jne 0x50a460
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x50a42c
mov edx, dword [ecx + 0x37cc]
xor eax, eax
mov dword [edx + 0xc], eax
mov ebx, dword [ecx + 0x37cc]
mov esi, 1
mov dword [ebx + 0x1c], esi
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 0x2c], esi
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov eax, dword [ecx + 0x37cc]
xor esi, esi
mov dword [eax + 0xc], esi
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x1c], esi
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x2c], esi
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 0x3c], esi
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx], 0
mov esi, dword [ecx + 0x37cc]
mov edx, 2
mov dword [esi + 4], edx
mov edi, dword [ecx + 0x37cc]
mov eax, 1
mov dword [edi + 8], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x10], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x14], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x18], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x20], edx
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x24], eax
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x3714]
test eax, eax
jne 0x50a537
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x50a50f
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0xc], 0
mov edx, dword [ecx + 0x37cc]
mov ebx, 1
mov dword [edx + 0x1c], ebx
mov esi, dword [ecx + 0x37cc]
mov dword [esi + 0x2c], ebx
mov edi, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], edi
jmp 0x50a540
mov eax, dword [ecx + 0x37cc]
xor ebx, ebx
mov dword [eax + 0xc], ebx
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x1c], ebx
mov esi, dword [ecx + 0x37cc]
mov dword [esi + 0x2c], ebx
mov edi, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], edi
jmp 0x50a540
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
mov dword [ecx + 0x37a4], 8
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x2c]
mov dword [ecx + 0x37a8], ebx
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x37ac], edx
xor eax, eax
mov dword [ecx + 0x6c], eax
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ecx + 0x37b8], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ecx + 0x37bc], eax
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x50a5da
mov edx, dword [ecx + 0x37cc]
mov eax, ebx
shl eax, 4
mov edi, dword [eax + edx + 4]
mov esi, dword [ebp - 0x24]
cmp esi, edi
jge 0x50a5a5
mov dword [ebp - 0x24], edi
mov dword [ecx + 0x37b8], edi
mov edi, dword [eax + edx + 8]
mov esi, dword [ebp - 0x28]
cmp esi, edi
jge 0x50a5b9
mov dword [ebp - 0x28], edi
mov dword [ecx + 0x37bc], edi
mov esi, dword [eax + edx + 4]
cmp esi, 1
je 0x50a904
mov dword [ecx + 0x6c], 1
add ebx, 1
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x1c]
cmp ebx, eax
jl 0x50a58c
mov eax, dword [ecx + 0x74]
cmp eax, 1
je 0x50a7c6
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x24], eax
mov dword [ecx + 0x37b4], eax
mov edx, dword [ebp - 0x28]
add edx, edx
add edx, edx
add edx, edx
mov dword [ebp - 0x28], edx
mov dword [ecx + 0x37b0], edx
mov ebx, dword [ecx + 0x4c]
mov edi, eax
lea eax, [edi + ebx - 1]
cdq
idiv edi
mov esi, eax
mov dword [ecx + 0x78], esi
mov edi, dword [ecx + 0x50]
mov ebx, dword [ebp - 0x28]
lea eax, [ebx + edi - 1]
cdq
idiv ebx
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x37c4], esi
imul eax, esi
mov dword [ecx + 0x37c8], eax
mov esi, dword [ecx + 0x37e0]
test esi, esi
je 0x50a75c
mov eax, dword [ecx]
cmp eax, 8
je 0x50a700
cmp eax, 9
je 0x50a700
cmp eax, 0xc
je 0x50a700
cmp eax, 0xd
je 0x50a700
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x50a6bb
cmp eax, 2
je 0x50a6bb
mov eax, dword [ecx + 0x3824]
test eax, eax
je 0x50a6af
push esp
push eax
call fcn.0050bd20
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x50a6a2
mov dword [ebp - 0x50], 0xfffffff7
jmp 0x50a1aa
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x3824], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x50a1aa
mov eax, dword [ecx + 0xc]
lea edx, [eax*8 + 8]
imul edx, dword [ecx + 0x37b8]
mov dword [ecx + 0xc], edx
mov eax, dword [ecx + 0x4c]
cmp edx, eax
jle 0x50a6d9
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
lea edx, [eax*8 + 8]
imul edx, dword [ecx + 0x37bc]
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 0x50]
cmp edx, eax
jle 0x50a1aa
mov dword [ecx + 0x10], eax
jmp 0x50a1aa
lea eax, [ecx + 0x4857]
and eax, 0xffffffe0
mov dword [ecx + 0x4834], eax
mov edx, dword [ecx + 0x4de0]
test edx, edx
je 0x50a74d
push esp
push ecx
call fcn.0050f130
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x37dc], 1
mov edx, dword [ebp - 0x44]
add edx, dword [ecx + 0x3804]
mov dword [ebp - 0x44], edx
mov dword [ecx + 0x48], edx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x28], edx
jmp 0x50a671
push esp
push ecx
call fcn.0050da50
add esp, 8
mov dword [ebp - 0x50], eax
jmp 0x50a726
mov dword [ecx + 0x3804], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
test eax, eax
jl 0x50a7b7
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x3814], eax
push esp
push ecx
call fcn.0050d700
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x50a1aa
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
cmp eax, 0xa
je 0x50a7a1
cmp eax, 0xb
jne 0x50a64a
mov eax, dword [ecx + 0x3804]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], eax
mov eax, dword [ecx]
jmp 0x50a64a
add eax, 1
imul eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x20]
mov dword [ecx + 0x20], eax
jmp 0x50a773
mov eax, 8
mov dword [ebp - 0x24], eax
mov ebx, 8
mov dword [ecx + 0x37b4], ebx
mov edx, 8
mov dword [ebp - 0x28], edx
mov dword [ecx + 0x37b0], ebx
jmp 0x50a60a
mov ecx, dword [ebx + 0x2c]
mov dword [esi + 0x4c], ecx
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x50], eax
mov edx, dword [ebx + 0x34]
mov dword [esi + 0x54], edx
mov edi, dword [ebx + 0x38]
mov dword [ebp - 0x28], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x44], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x24], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x28], ecx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov dword [esi + 0x34], eax
mov edx, dword [ebx + 0x1c]
mov dword [esi + 0x38], edx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x20], edi
cmp edx, 2
je 0x50a8ba
mov edi, dword [ebx + 0x14]
imul edi, eax
add edi, dword [ebp - 0x20]
mov dword [esi + 0x3c], edi
test ecx, ecx
jge 0x50a87b
neg edi
mov dword [esi + 0x3c], edi
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x68], eax
mov ecx, dword [ebx + 0x4c]
mov dword [esi + 0x6c], ecx
mov ebx, dword [ebx + 0x50]
mov dword [esi + 0x70], ebx
cmp edx, 2
jne 0x50a199
mov eax, dword [ebp - 0x24]
cmp eax, 3
jne 0x50a199
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x50a199
mov dword [esi + 0x5c], 2
jmp 0x50a199
lea edi, [edi + eax*2]
jmp 0x50a86f
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x387c]
test edx, edx
je 0x50a1b5
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x387c]
push esp
push edx
call fcn.0050bd20
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x387c], 0
jmp 0x50a1b5
mov eax, dword [eax + edx + 8]
cmp eax, 1
jne 0x50a5c6
jmp 0x50a5cd
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx], 0
mov esi, dword [ecx + 0x37cc]
mov edx, 2
mov dword [esi + 4], edx
mov edi, dword [ecx + 0x37cc]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x37cc]
mov eax, 1
mov dword [ebx + 0x10], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x14], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x18], eax
mov ebx, dword [ecx + 0x37cc]
mov dword [ebx + 0x20], edx
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x24], eax
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x3714]
test eax, eax
jne 0x50a9e5
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x50a9ba
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0xc], 0
mov edx, dword [ecx + 0x37cc]
mov ebx, 1
mov dword [edx + 0x1c], ebx
mov esi, dword [ecx + 0x37cc]
mov dword [esi + 0x2c], ebx
mov edi, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], edi
jmp 0x50a540
mov eax, dword [ecx + 0x37cc]
xor ebx, ebx
mov dword [eax + 0xc], ebx
mov edx, dword [ecx + 0x37cc]
mov dword [edx + 0x1c], ebx
mov esi, dword [ecx + 0x37cc]
mov dword [esi + 0x2c], ebx
mov edi, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], edi
jmp 0x50a540
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
xor edx, edx
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x50aa3d
mov eax, edx
shl eax, 4
mov ebx, dword [ecx + 0x37cc]
mov dword [eax + ebx], edx
mov esi, dword [ecx + 0x37cc]
mov edi, 1
mov dword [eax + esi + 4], edi
mov ebx, dword [ecx + 0x37cc]
mov dword [eax + ebx + 8], edi
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jl 0x50aa03
mov eax, dword [ecx + 0x3714]
test eax, eax
jne 0x50a540
mov eax, dword [ecx + 0x37cc]
mov dword [eax + 0xc], 0
mov edx, dword [ecx + 0x68]
test edx, edx
je 0x50aab1
mov eax, dword [ecx + 0x37c0]
cmp eax, 2
mov dword [ebp - 0x1c], eax
jl 0x50a540
mov ebx, 1
mov dword [ebp - 0x40], 1
cmp eax, 1
jle 0x50a540
mov edx, dword [ecx + 0x37cc]
mov eax, ebx
shl eax, 4
mov dword [eax + edx + 0xc], 1
add ebx, 1
mov dword [ebp - 0x40], ebx
mov esi, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], esi
cmp ebx, esi
jl 0x50aa86
jmp 0x50a540
mov eax, dword [ecx + 0x37c0]
mov dword [ebp - 0x1c], eax
jmp 0x50a540
mov eax, dword [esi + 0x3824]
test eax, eax
jne 0x50a182
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push 0xc0000000
push edx
call fcn.0050bce0
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x50aaf6
mov esi, dword [ebp - 0x48]
mov dword [esi + 0x3824], eax
jmp 0x50a182
mov dword [ebp - 0x50], 0xfffffff6
jmp 0x50a1aa