Function at 0x4037b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 7], 0
test ecx, ecx
jl 0x403b1e
mov edx, dword [esi + 0x1c]
cmp ecx, edx
jge 0x403b1e
mov eax, dword [esi + 0x20]
push edi
test eax, eax
jl 0x4037ea
cmp eax, edx
jge 0x4037ea
mov edx, dword [esi + 0x18]
mov edi, dword [edx + eax*4]
mov dword [esp + 0xc], edi
jmp 0x4037f6
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x18]
push ebp
mov ebp, dword [eax + ecx*4]
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 4]
test eax, eax
jne 0x403824
push eax
mov ecx, esi
call fcn.00403bc0
push 1
mov ecx, esi
call fcn.00403b80
push 1
mov ecx, esi
call fcn.00403bf0
jmp 0x403856
cmp eax, 2
jne 0x403836
push 1
mov ecx, esi
call fcn.00403c10
push 0
jmp 0x403846
push 1
mov ecx, esi
mov byte [esp + 0x13], 1
call fcn.00403b80
push 1
mov ecx, esi
call fcn.00403bf0
push 1
mov ecx, esi
call fcn.00403bc0
mov al, byte [esp + 0x40]
test edi, edi
mov byte [ebp + 0x28], al
je 0x403864
mov byte [edi + 0x28], al
mov eax, dword [ebp + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
push ebx
jne 0x403920
mov al, byte [esp + 0x13]
test al, al
je 0x40388d
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0x3ec
push edx
jmp 0x40389a
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
push eax
push 0x3f1
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push 0
mov dword [esp + 0x2c], edx
call ebx
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
push 0
call ebx
mov ecx, dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [esi + 4]
push ebp
push 0x4035d0
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp + 0x20], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x2c]
sub ebx, edx
push ebx
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x3eb
push ecx
call ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
push edx
push 0x3ee
push eax
call ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi]
push ecx
push 0x3f3
push edx
call ebx
mov bl, byte [esp + 0x13]
mov eax, dword [esi]
neg bl
sbb ebx, ebx
and ebx, 5
push ebx
push 0x3ed
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
mov ecx, dword [esi]
push ebx
push 0x3f3
push ecx
call edi
push eax
call ebp
mov edx, dword [esi]
push ebx
push 0x3f0
push edx
call edi
push eax
call ebp
mov eax, dword [esi]
push ebx
push 0x3eb
push eax
call edi
push eax
call ebp
mov bl, byte [esp + 0x13]
mov ecx, dword [esi]
neg bl
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 5
push ebx
push 0x3ef
push ecx
call edi
push eax
call ebp
mov edx, dword [esi]
push ebx
push 0x3ee
push edx
call edi
push eax
call ebp
mov al, byte [esp + 0x13]
test al, al
lea eax, [esp + 0x2c]
push eax
je 0x403a11
mov ecx, dword [esi]
push 0x3ed
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
xor ebx, ebx
add eax, 0xfffffffe
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jmp 0x403a6f
mov ecx, dword [esi]
push 0x3f1
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
add edx, 4
push ecx
push 0
mov dword [esp + 0x30], edx
call ebx
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push 1
push edx
push eax
push 0
call ebx
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [esi]
push edx
push 0
push eax
push 0
push 0x3f2
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [esp + 0x44]
pop ebx
test al, al
je 0x403aa8
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
test eax, eax
mov dword [esi + 0x20], ecx
je 0x403ac3
mov eax, dword [eax + 0x20]
test eax, eax
je 0x403ac3
push 0
push eax
call ebp
mov edx, dword [esp + 0x14]
push 1
mov eax, dword [edx + 0x20]
push eax
call ebp
mov ecx, dword [esi]
push 1
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
pop ebp
je 0x403afa
mov edx, dword [esi]
push 1
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi]
push 0
push 2
push eax
call edi
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 8
xor al, al
pop esi
add esp, 0x2c
ret 8