Function at 0x557b50
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x746443
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push esi
push edi
mov esi, ecx
push 2
push esi
mov dword [ebp - 0x4c], esi
call fcn.006eb0cd
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push bind
push 0
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x55855a
push 0
push bind
push 0
push 0
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
test eax, eax
je 0x55856c
push 0
push bind
push 0
push 0
call edi
mov dword [esi + 0x3c], eax
test eax, eax
je 0x558591
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], 0
mov byte [esi + 0x40], 0
lea edi, [esi + 0x58]
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], edi
mov dword [edi], 0
push 0x14
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00512870
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov dword [edi], 0x3f800000
push dword [edi + 4]
mov byte [ebp - 4], 7
push 0x10
call fcn.00491eb0
lea eax, [esi + 0x78]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], eax
mov dword [eax], 0
push 0x40
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.00512870
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x7c], eax
lea ecx, [esi + 0x84]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esi + 0x90], 7
mov dword [esi + 0x94], 8
mov dword [esi + 0x78], 0x3f800000
push dword [esi + 0x7c]
mov byte [ebp - 4], 0xa
push 0x10
call fcn.00491eb0
add esi, 0x98
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00512870
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 0xd
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00491eb0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x54], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x557db5
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 4]
shr eax, 3
cmp eax, edx
jbe 0x557d6d
mov eax, dword [ecx]
mov ecx, esi
push eax
push dword [eax]
call fcn.00558fe0
jmp 0x557db5
push dword [ecx]
push ecx
call fcn.00533560
mov eax, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov dword [esi + 8], 0
mov edx, dword [esi + 0x10]
mov ecx, edx
sub ecx, dword [esi + 0xc]
add ecx, 3
shr ecx, 2
cmp dword [esi + 0xc], edx
cmova ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x557db5
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
push 0
push 0
mov ecx, esi
call fcn.005574b0
cmp dword [edi + 8], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], str.gamepersistence
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.badges
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], str.points
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], 2
je 0x557e72
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x557e33
nop word [eax + eax]
mov esi, dword [eax]
push 0x14
push eax
call fcn.00512900
add esp, 8
mov eax, esi
test esi, esi
jne 0x557e20
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], 0
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov dword [edi + 8], 0
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 4]
sub ecx, esi
add ecx, 3
shr ecx, 2
cmp esi, dword [edi + 0x10]
cmova ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x557e6f
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.005576f0
push 0xf
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push str.gamepersistence
mov dword [ebp - 0x38], 0x1ad
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00483e90
mov dword [ebp - 0xe4], 0
lea ecx, [ebp - 0xe4]
push 0x20
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0xf
mov byte [ebp - 0xe4], 0
call fcn.00483da0
movups xmm0, xmmword [str._persistence_set]
mov dword [ebp - 0xd4], 0x10
mov dword [ebp - 0xd0], 0x1f
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0xcc]
push 0x20
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0xf
mov byte [ebp - 0xcc], 0
call fcn.00483da0
movups xmm0, xmmword [str._persistence_getV2]
mov dword [ebp - 0xbc], 0x12
mov dword [ebp - 0xb8], 0x1f
movups xmmword [eax], xmm0
movzx ecx, word [0x79572c]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], 0
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0xb4]
push 0x20
mov byte [ebp - 4], 0x11
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
call fcn.00483da0
movups xmm0, xmmword [str._persistence_increment]
mov dword [ebp - 0xa4], 0x16
mov dword [ebp - 0xa0], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x795740]
mov dword [eax + 0x10], ecx
movzx ecx, word [0x795744]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0x9c]
push 0x20
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
call fcn.00483da0
movups xmm0, xmmword [str._persistence_remove]
mov dword [ebp - 0x8c], 0x13
mov dword [ebp - 0x88], 0x1f
movups xmmword [eax], xmm0
movzx ecx, word [0x795758]
mov word [eax + 0x10], cx
mov cl, byte [0x79575a]
mov byte [eax + 0x12], cl
mov byte [eax + 0x13], 0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x84]
push 0x20
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
call fcn.00483da0
movups xmm0, xmmword [str._persistence_getSortedValues]
mov dword [ebp - 0x74], 0x1c
mov dword [ebp - 0x70], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x79576c]
movq qword [eax + 0x10], xmm0
mov ecx, dword [0x795774]
mov dword [eax + 0x18], ecx
mov byte [eax + 0x1c], 0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x6c], 0x2f
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x150]
call fcn.0054dee0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x16
call fcn.00480e80
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x264]
call fcn.004f38d0
push 6
mov dword [ebp - 0x1f4], 0
lea ecx, [ebp - 0x1f4]
push str.points
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x1f8], 0x1ad
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
call fcn.00483e90
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x12c]
push 0x40
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00483da0
movups xmm0, xmmword [str._v1_universes_universeId_users_userId_all_time]
mov ecx, eax
mov dword [ebp - 0x11c], 0x32
mov dword [ebp - 0x118], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x79578c]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x79579c]
movups xmmword [ecx + 0x20], xmm0
mov ax, word [0x7957ac]
mov word [ecx + 0x30], ax
mov byte [ecx + 0x32], 0
mov dword [ebp - 0x12c], ecx
push 0x29
mov dword [ebp - 0x114], 0
lea ecx, [ebp - 0x114]
push str._v1_universes_universeId_users_userId
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0xf
mov byte [ebp - 0x114], 0
call fcn.00483e90
push 1
mov dword [ebp - 0xfc], 0
lea ecx, [ebp - 0xfc]
push 0x761b00
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0xf
mov byte [ebp - 0xfc], 0
call fcn.00483e90
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x144]
call fcn.0054dee0
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x1f4]
push eax
mov byte [ebp - 4], 0x1d
call fcn.00480e80
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x23c]
call fcn.004f38d0
push 6
mov dword [ebp - 0x1c8], 0
lea ecx, [ebp - 0x1c8]
push str.badges
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x1cc], 0x1ad
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0xf
mov byte [ebp - 0x1c8], 0
call fcn.00483e90
push 0x27
mov dword [ebp - 0x1b0], 0
lea ecx, [ebp - 0x1b0]
push str._v1_users_userId_badges_awarded_dates
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xf
mov byte [ebp - 0x1b0], 0
call fcn.00483e90
push 0x14
mov dword [ebp - 0x198], 0
lea ecx, [ebp - 0x198]
push str._v1_badges_badgeId
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], 0
call fcn.00483e90
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x180], 0
push 0x2f
push str._v1_users_userId_badges_badgeId_award_badge
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
call fcn.00483e90
push 1
mov dword [ebp - 0x168], 0
lea ecx, [ebp - 0x168]
push 0x761b00
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], 0
call fcn.00483e90
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 0x24
push eax
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x1b0]
push edx
lea ecx, [ebp - 0x138]
call fcn.0054dee0
mov eax, dword [ebp - 0x1cc]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 0x25
call fcn.00480e80
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0x26
push eax
lea ecx, [ebp - 0x214]
call fcn.004f38d0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x208]
mov byte [ebp - 4], 0x2d
cmp dword [edi + 8], 0
je 0x558495
push dword [edi + 4]
lea esi, [edi + 4]
push esi
call fcn.00533450
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
mov dword [esi + 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x10]
push dword [edi + 0xc]
call fcn.00489330
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x280]
mov ecx, edi
push eax
call fcn.00557300
push fcn.005386d0
push 3
push 0x28
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 0x2c
push eax
call fcn.006ff3a8
lea ecx, [ebp - 0x138]
call fcn.00490240
push fcn.00481f10
push 4
push 0x18
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 0x2a
push eax
call fcn.006ff3a8
lea ecx, [ebp - 0x1cc]
call fcn.00490320
lea ecx, [ebp - 0x144]
call fcn.00490240
push fcn.00481f10
push 3
push 0x18
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0x27
push eax
call fcn.006ff3a8
lea ecx, [ebp - 0x1f8]
call fcn.00490320
lea ecx, [ebp - 0x150]
call fcn.00490240
push fcn.00481f10
push 6
push 0x18
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xf
push eax
call fcn.006ff3a8
lea ecx, [ebp - 0x38]
call fcn.00490320
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x48]
call fcn.004e63b0
push eax
mov byte [ebp - 4], 1
call fcn.004e4190
push bind
push dword [esi + 0x34]
call fcn.0055b430
add esp, 8
lea ecx, [ebp - 0x208]
call fcn.004e63b0
push eax
mov byte [ebp - 4], 2
call fcn.004e4190
push bind
push dword [esi + 0x34]
call fcn.0055b430
push bind
push dword [esi + 0x38]
call fcn.0055b430
add esp, 0x10
lea ecx, [ebp - 0x1dc]
call fcn.004e63b0
push eax
mov byte [ebp - 4], 3
call fcn.004e4190
int3