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

Disassembly:
sub esp, 0x3dc
push ebx
push ebp
mov ebp, dword [esp + 0x3e8]
mov eax, dword [ebp + 0x10]
push esi
push edi
xor ebx, ebx
cmp eax, ebx
mov edi, ecx
mov dword [esp + 0x10], edi
jne 0x5524c0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3dc
ret 0xc
cmp dword [edi + 0x250], ebx
je 0x552822
push ebx
lea ecx, [esp + 0x18]
call fcn.00499690
mov dword [esp + 0x2c], 0x55
mov ecx, dword [ebp + 8]
cmp ecx, 0x12c
mov esi, 1
lea esp, [esp]
jbe 0x5526bf
mov eax, dword [ebp + 0xc]
cmp eax, 0x12c
jbe 0x5526bf
mov dword [esp + 0xf0], eax
mov eax, 0xa0
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0xec], ecx
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xfc]
push edx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call fcn.004a9cf0
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
add ecx, 7
add esp, 0xc
add eax, 7
mov dword [esp + 0x100], ecx
push ebx
and ecx, 0xfffffff8
mov dword [esp + 0x100], eax
push ecx
and eax, 0xfffffff8
push eax
lea ecx, [esp + 0x110]
call fcn.004998c0
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call fcn.00495350
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0xe0], ecx
push ebp
lea ecx, [esp + 0x130]
mov byte [esp + 0x60], 1
mov byte [esp + 0x62], bl
mov dword [esp + 0x54], 5
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], eax
call fcn.00499ad0
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x140]
push eax
sub esp, 8
lea edx, [esp + 0x124]
mov ecx, esp
push edx
call fcn.00403ad0
lea ecx, [esp + 0x50]
call fcn.00497d20
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov ecx, esp
mov eax, esi
mov dword [ecx], eax
mov eax, 4
mov dword [ecx + 4], eax
lea eax, [esp + 0x110]
mov dword [ecx + 8], edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00538720
add esp, 0x14
lea ecx, [esp + 0x12c]
call fcn.00499ac0
lea ecx, [esp + 0x88]
call fcn.004996f0
lea ecx, [esp + 0x80]
call fcn.004996f0
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x552674
push eax
call fcn.00499410
add esp, 4
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
and edx, esi
cmp eax, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
je 0x552693
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x74]
and eax, esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
call fcn.004996f0
lea ecx, [esp + 0x60]
call fcn.004996f0
lea ecx, [esp + 0x104]
call fcn.00499ac0
lea ecx, [esp + 0x154]
call fcn.00551a60
lea esi, [edi + 0x138]
mov ecx, 0x2e
lea edi, [esp + 0x28c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x240]
cmp eax, dword [edi + 0xec]
je 0x552792
cmp eax, ebx
je 0x552752
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x552752
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x55273e
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x552739
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x55273e
mov eax, 0xff
cmp eax, ebx
jne 0x552752
mov ecx, dword [esp + 0x240]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [edi + 0xec]
cmp eax, ebx
mov dword [esp + 0x240], eax
je 0x552792
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x552786
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x552792
lea ecx, [esp + 0x240]
call fcn.0049d350
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x154]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
lea esi, [edi + 0x24c]
push esi
call fcn.00560e80
mov eax, dword [esi]
add esp, 0x14
cmp eax, 0x10000
jb 0x552804
lea ecx, [esp + 0x14]
call fcn.00499750
mov ecx, dword [esp + 0x2c]
mov eax, 0xf
cmp ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jbe 0x5527f8
sub ecx, eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x154]
call fcn.00551af0
mov edi, dword [esp + 0x10]
jmp 0x5524de
mov ecx, esi
call fcn.00499750
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea ecx, [esp + 0x154]
call fcn.00551af0
lea ecx, [esp + 0x14]
call fcn.004996f0
mov edi, dword [esp + 0x10]
jmp 0x552930
lea ecx, [esp + 0x84]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], ebx
call fcn.005529a0
push ebx
lea ecx, [esp + 0x98]
call fcn.00499690
push edi
lea ecx, [edi + 0x24c]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x68], 1
mov dword [esp + 0x78], 0x65786966
mov dword [esp + 0x88], 0x67707320
mov dword [esp + 0x98], 0x65786f70
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x38], ebx
call fcn.0055eae0
lea ecx, [esp + 0x94]
call fcn.004996f0
lea ecx, [esp + 0x84]
call fcn.00552a20
lea ecx, [esp + 0x88]
call fcn.0050ad20
lea ecx, [esp + 0x74]
call fcn.00552a20
lea ecx, [esp + 0x78]
call fcn.0050ad20
lea ecx, [esp + 0x64]
call fcn.00552a20
lea ecx, [esp + 0x68]
call fcn.0050ad20
lea ecx, [esp + 0x54]
call fcn.00552a20
lea ecx, [esp + 0x58]
call fcn.0050ad20
lea ecx, [esp + 0x44]
call fcn.005529b0
push ebx
lea ecx, [esp + 0x20]
call fcn.00499690
mov edx, dword [esp + 0x3f4]
mov ecx, dword [edx]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.00538720
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x552980
mov ecx, dword [esp + 0x3f8]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.005521d0
mov esi, eax
lea ecx, [esp + 0x1c]
call fcn.004996f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3dc
ret 0xc