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

Disassembly:
push 0xffffffffffffffff
push 0x4271be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebp
push str.initConfigValue
mov ebp, ecx
call dword [0x42c454]
lea eax, [esp + 0xc]
push eax
call fcn.004054f0
add esp, 8
push 0
push 1
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0
call dword [0x42c458]
mov ecx, dword [esp + 8]
mov byte [esp + 0x60], 2
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4056da
mov eax, dword [esp + 8]
push eax
call dword [0x42c538]
add esp, 4
push ebx
mov ebx, dword [0x42c45c]
push esi
push edi
push 1
lea ecx, [esp + 0x28]
call ebx
mov edi, dword [0x42c460]
lea ecx, [esp + 0x24]
push ecx
push 0x48ddbc
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 3
call edi
mov ecx, eax
mov byte [esp + 0x6c], 4
call dword [0x42c464]
mov esi, dword [0x42c468]
lea ecx, [esp + 0x34]
mov byte [ebp + 0xc], al
mov byte [esp + 0x6c], 3
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 1
lea ecx, [esp + 0x28]
call ebx
lea eax, [esp + 0x24]
push eax
push 0x48ddc0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 5
call edi
mov ecx, eax
mov byte [esp + 0x6c], 6
call dword [0x42c464]
lea ecx, [esp + 0x34]
mov byte [ebp + 0xe], al
mov byte [esp + 0x6c], 5
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 1
lea ecx, [esp + 0x28]
call ebx
lea edx, [esp + 0x24]
push edx
push 0x48de08
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call edi
mov ecx, eax
mov byte [esp + 0x6c], 8
call dword [0x42c464]
lea ecx, [esp + 0x34]
mov byte [ebp + 0xd], al
mov byte [esp + 0x6c], 7
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 0
lea ecx, [esp + 0x28]
call dword [0x42c46c]
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x24]
push ecx
push 0x48ddd8
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
call edi
push 0
mov ecx, eax
mov byte [esp + 0x70], 0xa
call dword [0x42c470]
lea ecx, [esp + 0x34]
mov dword [ebp + 0x10], eax
mov byte [esp + 0x6c], 9
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 4
lea ecx, [esp + 0x28]
call dword [0x42c46c]
lea eax, [esp + 0x24]
push eax
push 0x48dda4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0xb
call edi
push 0
mov ecx, eax
mov byte [esp + 0x70], 0xc
call dword [0x42c470]
lea ecx, [esp + 0x34]
mov dword [ebp + 0x14], eax
mov byte [esp + 0x6c], 0xb
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 0
lea ecx, [esp + 0x28]
call dword [0x42c46c]
lea edx, [esp + 0x24]
push edx
push 0x48de18
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0xd
call edi
push 0
mov ecx, eax
mov byte [esp + 0x70], 0xe
call dword [0x42c470]
lea ecx, [esp + 0x34]
mov dword [ebp + 0x18], eax
mov byte [esp + 0x6c], 0xd
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 1
lea ecx, [esp + 0x28]
call ebx
lea ecx, [esp + 0x24]
push ecx
push 0x48ddd0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0xf
call edi
mov byte [esp + 0x6c], 0x10
mov ecx, eax
call dword [0x42c464]
lea ecx, [esp + 0x34]
mov byte [ebp + 0x1c], al
mov byte [esp + 0x6c], 0xf
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call esi
push 0x48de00
lea ecx, [esp + 0x28]
call dword [0x42c474]
lea eax, [esp + 0x24]
push eax
push 0x48de0c
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0x11
call edi
lea edx, [esp + 0x10]
push edx
mov ecx, eax
mov byte [esp + 0x70], 0x12
call dword [0x42c478]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0x14
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 0x15
call esi
push 2
lea ecx, [esp + 0x38]
call dword [0x42c46c]
lea eax, [esp + 0x34]
push eax
push 0x48dda0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0x16
call edi
push 0
mov ecx, eax
mov byte [esp + 0x70], 0x17
call dword [0x42c470]
lea ecx, [esp + 0x54]
mov dword [ebp + 0x30], eax
mov byte [esp + 0x6c], 0x16
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x15
call esi
push 1
lea ecx, [esp + 0x38]
call ebx
lea edx, [esp + 0x34]
push edx
push 0x48ddac
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0x18
call edi
mov ecx, eax
mov byte [esp + 0x6c], 0x19
call dword [0x42c464]
lea ecx, [esp + 0x54]
mov byte [ebp + 0x34], al
mov byte [esp + 0x6c], 0x18
call esi
mov byte [esp + 0x6c], 0x15
lea ecx, [esp + 0x34]
call esi
call fcn.0041d730
movzx ecx, al
push ecx
lea ecx, [esp + 0x38]
call ebx
lea edx, [esp + 0x34]
push edx
push 0x48ddb4
lea eax, [esp + 0x5c]
mov bl, 0x1a
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], bl
call edi
mov ecx, eax
mov byte [esp + 0x6c], 0x1b
call dword [0x42c464]
lea ecx, [esp + 0x54]
mov byte [ebp + 0x35], al
mov byte [esp + 0x6c], bl
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x15
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call dword [0x42c46c]
lea ecx, [esp + 0x34]
push ecx
push 0x48de1c
lea edx, [esp + 0x5c]
mov bl, 0x1c
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], bl
call edi
push 0
mov ecx, eax
mov byte [esp + 0x70], 0x1d
call dword [0x42c470]
lea ecx, [esp + 0x54]
mov dword [ebp + 0x38], eax
mov byte [esp + 0x6c], bl
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x15
call esi
lea ecx, [esp + 0x34]
call dword [0x42c47c]
push eax
push 0x48ddb8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0x1e
call edi
lea ecx, [esp + 0x18]
push ecx
mov bl, 0x1f
mov ecx, eax
mov byte [esp + 0x70], bl
call dword [0x42c480]
push eax
lea ecx, [ebp + 0x3c]
mov byte [esp + 0x70], 0x20
call dword [0x42c484]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x6c], bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x405ade
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x42c52c]
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 0x1e
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x15
call esi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
jl 0x405b02
cmp eax, 5
jle 0x405b05
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jl 0x405b11
cmp eax, 8
jle 0x405b18
mov dword [ebp + 0x14], 4
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jl 0x405b24
cmp eax, 2
jle 0x405b27
mov dword [ebp + 0x18], ebx
mov edi, dword [0x42c678]
lea edx, [esp + 0x10]
lea esi, [ebp + 0x20]
push edx
mov ecx, esi
call edi
cmp dword [esi], ebx
jne 0x405b46
push 0x48de00
mov ecx, esi
call edi
mov eax, dword [ebp + 0x30]
cmp eax, 1
jl 0x405b55
cmp eax, 0x3e8
jle 0x405b5c
mov dword [ebp + 0x30], 2
mov eax, dword [ebp + 0x38]
pop edi
pop esi
cmp eax, ebx
pop ebx
jl 0x405b6b
cmp eax, 5
jle 0x405b73
call fcn.0041d6e0
mov dword [ebp + 0x38], eax
mov ecx, ebp
call fcn.00423f00
mov eax, dword [esp + 4]
mov byte [esp + 0x60], 2
or ecx, 0xffffffff
pop ebp
lock xadd dword [eax], ecx
jne 0x405b9a
mov edx, dword [esp]
push edx
call dword [0x42c538]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call dword [0x42c488]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret