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

Disassembly:
push 0xffffffffffffffff
push 0x52f4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 1
mov byte [esp + 0x38], al
call fcn.0050f220
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.004f5d00
movsx ebp, ax
lea esi, [ebp + 2]
push esi
mov dword [esp + 0x1c], esi
call fcn.00514a8b
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x78]
mov byte [ebx], 0x20
lea edi, [ebx + 1]
call fcn.004f5d20
mov ecx, ebp
mov esi, eax
mov eax, ecx
mov dword [esp + 0x10], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x14], esi
jle 0x50c261
cmp byte [esi + ebx], 0x20
jne 0x50c250
sub esi, dword [esp + 0x10]
cmp esi, 2
jl 0x50c2ce
push esi
call fcn.00514a8b
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esi - 1]
mov edx, ecx
mov edi, ebp
lea esi, [ebx + eax + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, byte [ebp]
push eax
call fcn.00515bac
add esp, 8
test eax, eax
je 0x50c221
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
movsx ecx, byte [ebp]
push ecx
call fcn.00515b5c
add esp, 4
test eax, eax
je 0x50c1c4
push 0x2e
push ebp
call fcn.00515aa0
add esp, 8
test eax, eax
jne 0x50c1b0
push ebp
mov byte [esp + 0x24], 3
call fcn.00514a57
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x50c211
push ebp
mov byte [esp + 0x24], 0xc
call fcn.0051523c
fstp qword [esp + 0x34]
add esp, 4
jmp 0x50c211
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
movsx eax, byte [ebp]
add eax, 0xffffffbe
cmp eax, 0x20
ja case.0x50c1e9.71
xor edx, edx
mov dl, byte [eax + 0x50c82c]
jmp dword [edx*4 + 0x50c814]
mov byte [esp + 0x20], 7
jmp 0x50c211
mov byte [esp + 0x20], 5
jmp 0x50c211
mov byte [esp + 0x20], 9
jmp 0x50c211
mov byte [esp + 0x20], 6
jmp 0x50c211
mov byte [esp + 0x20], 0xa
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
call fcn.0050e4f0
jmp 0x50c23d
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edx
call fcn.0050aeb0
test al, al
je 0x50c383
push ebp
call fcn.00514140
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x50c10c
cmp dword [esp + 0x64], 1
je 0x50c3ef
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c2b3
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c2a2
cmp ecx, dword [esp + 0x40]
jne 0x50c2ab
lea ecx, [esp + 0x38]
call fcn.0050eee0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c287
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.004f5980
mov dword [esp + 0x70], 0xffffffff
jmp 0x50c7f4
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c2b3
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c304
cmp ecx, dword [esp + 0x40]
jne 0x50c30d
lea ecx, [esp + 0x38]
call fcn.0050eee0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c2e9
jmp 0x50c2b3
push ebp
call fcn.00514140
push ebx
call fcn.00514140
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c368
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c357
mov eax, dword [esp + 0x40]
mov edx, ecx
cmp edx, eax
jne 0x50c360
lea ecx, [esp + 0x38]
call fcn.0050eee0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c338
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.004f5980
mov dword [esp + 0x70], 0xffffffff
jmp 0x50c7f4
push ebp
call fcn.00514140
push ebx
call fcn.00514140
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c3d4
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c3c3
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x50c3cc
lea ecx, [esp + 0x38]
call fcn.0050eee0
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c3a4
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.004f5980
mov dword [esp + 0x70], 0xffffffff
jmp 0x50c7f4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x58]
or ebp, 0xffffffff
mov dword [esp + 0x28], ecx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
call fcn.0050f2d0
mov esi, dword [esp + 0x28]
mov ecx, 6
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
cmp al, 7
jae 0x50c520
and eax, 0xff
dec eax
cmp eax, 5
ja case.default.0x50c442
jmp dword [eax*4 + 0x50c850]
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c7e2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c48b
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x50c50f
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x50c4f3
lea ecx, [esp + 0x20]
call fcn.0050f220
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514140
add esp, 4
jmp 0x50c50f
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c468
jmp 0x50c7e2
cmp al, 0xa
jbe 0x50c710
cmp al, 0xb
je case.0x50c442.1
cmp al, 0xc
jne 0x50c63d
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa4]
add esp, 4
mov ecx, 6
lea esi, [esp + 0x20]
mov byte [esp + 0x70], 1
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x50c618
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c588
mov eax, dword [esp + 0x40]
mov edx, ecx
cmp edx, eax
jne 0x50c60c
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x50c5f0
lea ecx, [esp + 0x20]
call fcn.0050f220
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514140
add esp, 4
jmp 0x50c60c
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c565
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.004f5980
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], ebp
call fcn.004f71e0
mov eax, 1
jmp 0x50c7ff
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c7e2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c67b
cmp ecx, dword [esp + 0x40]
jne 0x50c6ff
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x50c6e3
lea ecx, [esp + 0x20]
call fcn.0050f220
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], esi
call fcn.00514140
add esp, 4
jmp 0x50c6ff
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c65c
jmp 0x50c7e2
push ebx
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov byte [esp + 0x70], 1
je 0x50c7e2
mov edi, 0x18
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, edi
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], eax
je 0x50c752
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x50c7d6
mov ecx, dword [esp + 0x48]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.00514140
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
jne 0x50c7ba
lea ecx, [esp + 0x20]
call fcn.0050f220
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
call fcn.00514140
add esp, 4
jmp 0x50c7d6
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [eax + 0xff0]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x50c72f
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.004f5980
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x7c]
call fcn.004f71e0
xor eax, eax
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x2c