Function at 0x404bb0
Capabilities:
Get thread local storage value
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a7216
mov eax, dword fs:[0]
push eax
sub esp, 0xcb8
mov eax, dword [0x4ed3dc]
xor eax, esp
mov dword [esp + 0xcb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0xccc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcdc]
mov eax, dword [ebp + 0x1354c]
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], esi
mov dword [ebp + 0x124b0], eax
mov dword [ebp + 0x134e0], eax
call fcn.0049c860
lea eax, [ebp + 0x13552]
push eax
xor ebx, ebx
lea ecx, [esp + 0x2a0]
mov dword [esp + 0xcd8], ebx
mov edi, dword [esi + 4]
push 0x100
push ecx
mov dword [esp + 0xccc], ebx
call fcn.0046fdc1
add esp, 0xc
push edi
lea edx, [esp + 0xa0]
push 0x100
push edx
call fcn.0046fdc1
add esp, 0xc
push 0x4dcc04
lea eax, [esp + 0x4a0]
push 0x100
push eax
call fcn.0046fdc1
add esp, 0xc
push 0x10
add esi, 0x1c
push esi
lea ecx, [esp + 0x6ac]
push 0x10
push ecx
call fcn.0046f5f7
add esp, 0x10
mov dword [esp + 0x69c], ebx
mov dword [esp + 0x6a0], ebx
mov dword [esp + 0x6b4], ebx
mov byte [esp + 0xcd4], 1
mov edx, dword [ebp + 0x1378c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edx
call edi
mov ecx, dword [ebp + 0x13788]
cmp eax, ecx
je 0x404cff
mov eax, dword [esp + 0x69c]
cmp eax, ebx
je 0x404cdb
push eax
call fcn.00473ef1
add esp, 4
mov dword [esp + 0x69c], ebx
mov eax, dword [esp + 0x6a0]
cmp eax, ebx
je 0x405169
push eax
call fcn.00473ef1
add esp, 4
mov dword [esp + 0x6a0], ebx
jmp 0x405169
mov edx, dword [ebp + 0x30]
cmp dword [edx + 0x30], 1
jne 0x405137
push ebx
lea ebx, [esp + 0x1c]
lea esi, [esp + 0xa0]
call fcn.00422210
test al, al
je 0x405135
mov eax, dword [ebp + 0x1378c]
push eax
call edi
mov ecx, dword [ebp + 0x13788]
cmp eax, ecx
jne 0x40515d
mov edx, dword [ebp + 0x30]
cmp dword [edx + 0x30], 1
jne 0x405135
mov eax, dword [esp + 0x6a0]
push eax
mov ecx, ebx
lea edi, [ebp + 0x1352c]
push ecx
call fcn.00401e60
test al, al
je 0x405135
mov eax, edi
call fcn.00401e00
test eax, eax
je 0x405135
push eax
mov edx, ebx
lea ecx, [ebp + 0x134f4]
push edx
call fcn.00402f00
test al, al
je 0x405135
mov esi, ebp
call fcn.00405ee0
test al, al
je 0x40515d
mov eax, dword [ebp + 0x30]
cmp dword [eax + 0x30], 1
jne 0x405135
mov edx, dword [ebp + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x4c]
push ecx
push edx
call esi
mov eax, dword [ebp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x34]
push ecx
push 0x3fb
push eax
call ebx
push eax
call esi
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0x7c]
push edx
push 0x3e9
push eax
call ebx
push eax
call esi
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0x8c]
push ecx
push 0x3f7
push eax
call ebx
push eax
call esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x84]
push ecx
call esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x94]
push ecx
call esi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
lea esi, [ebp + 0x158]
mov ecx, dword [ebp + 0x1354c]
mov dword [esi + 0x1028], ecx
cmp byte [edi + ebp + 0x134f4], 0
jne 0x404eab
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x404ebb
mov eax, dword [esi]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add dword [esp + 0x14], 1
add edi, 1
add esi, 0x1030
cmp edi, 0x11
jl 0x404e88
mov edi, dword [esp + 0x14]
cmp edi, 2
lea esi, [ebp + 0x1184]
jg 0x404ee4
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jle 0x404fe9
lea edi, [ebp + 0x158]
mov dword [esp + 0x14], 0x11
lea ebx, [ebx]
mov edx, dword [edi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x404fb1
lea esi, [edi - 4]
lea ebx, [esp + 0x5c]
call fcn.0040fe60
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
lea eax, [esi + ebx]
cmp eax, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
jle 0x404f66
cmp dword [esp + 0x2c], 0
jne 0x404f66
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax + 0xa]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], 0xf
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 1
lea edx, [esi + ebx]
cmp edx, dword [esp + 0x30]
jle 0x404f83
cmp dword [esp + 0x2c], 1
jne 0x404f83
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x404fb1
mov edx, dword [esp + 0x28]
lea ecx, [eax + edx]
cmp ecx, dword [esp + 0x24]
jl 0x404f9d
mov edx, dword [edi]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x404fb1
push ebx
lea ecx, [edi - 4]
push ecx
mov ecx, esi
call fcn.0040fd50
lea eax, [ebx + esi + 4]
mov dword [esp + 0x20], eax
add edi, 0x1030
sub dword [esp + 0x14], 1
jne 0x404f00
mov ecx, dword [ebp + 0x13508]
push ecx
lea edx, [ebp + 0x164]
push 0x800
push edx
call fcn.0046fdc1
add esp, 0xc
mov byte [ebp + 0x21ac], 0
jmp 0x405121
push 0x4d8c48
mov byte [esi + 0x1028], 1
mov eax, dword [ebp + 0x24]
push 0x3fc
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x24]
push 5
push 0x3fc
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x24]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call edi
push 0x400
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
push eax
push 0xa
push 0x4d8c48
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call edi
mov edx, dword [ebp + 0x24]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
sub edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
sub eax, 0x28
mov dword [esp + 0x34], eax
add eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x24]
push 0x3fc
lea edx, [edi + ecx]
push eax
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
push edi
push ebx
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 4]
push 0x4d8c60
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ebx, [esp + 0x64]
call fcn.0040fe60
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x68]
push ecx
push esi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x40]
call fcn.0040fd50
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
push 1
mov dword [esi + 0x102c], eax
mov ecx, dword [ebp + 0x24]
push 0x3f7
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov esi, dword [ebp + 0x1354c]
mov bl, 1
call fcn.0040ad90
mov byte [ebp + 0x13784], bl
mov esi, ebp
call fcn.00405ee0
test al, al
je 0x40515d
mov edx, dword [ebp + 0x30]
cmp dword [edx + 0x30], 1
je 0x40515d
xor ebx, ebx
add ebp, 0x158
mov esi, 0x11
mov eax, dword [ebp]
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add ebp, 0x1030
sub esi, 1
jne 0x405142
jmp 0x404cc0
lea ecx, [esp + 0x9c]
call fcn.00421d00
lea ecx, [esp + 0x18]
call fcn.0049c800
mov ecx, dword [esp + 0xccc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcb0]
xor ecx, esp
call fcn.0046ec29
add esp, 0xcc4
ret 4