Function at 0x439160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4633f5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0xc8]
test ecx, ecx
je 0x4391b4
mov edx, dword [ebx + 0xcc]
test edx, edx
je 0x4391b4
mov eax, dword [ecx]
push 0
push edx
push ecx
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x4642a0]
call esi
push 1
mov ecx, ebx
call fcn.00437f70
push 0x198
call fcn.004024d0
mov edi, eax
mov edx, 2
test edi, edi
je 0x439215
xor esi, esi
cmp word [edi], si
je 0x4391e8
lea esp, [esp]
inc esi
cmp word [edi + esi*2], 0
jne 0x4391e0
xor ecx, ecx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x18], eax
push ecx
mov esi, eax
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x10
jmp 0x439225
mov edx, 0x198
lea ecx, [ebp - 0x54]
call fcn.0040ffa0
mov esi, dword [ebp - 0x54]
mov eax, esi
push eax
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
call fcn.0045e2f3
add esp, 4
push 1
push 1
push 0xf4
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx]
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x4642a0]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x48]
call fcn.004365f0
lea esi, [ebx + 0x204]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
lea edi, [ebx + 0x1d4]
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebp - 0x48]
push edi
mov dword [ebp - 0x18], eax
call fcn.00439490
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00439490
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x38], 0
je 0x4393a4
cmp dword [ebp - 0x44], 0
mov byte [ebx + 0x223], 1
jne 0x439369
xor esi, esi
inc esi
cmp byte [esi + 0x468340], 0
jne 0x439301
cmp esi, dword [ebp - 0x40]
jbe 0x43933e
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
push dword [ebp - 0x48]
mov edi, eax
call fcn.0045e2f3
add esp, 8
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], esi
jmp 0x439341
mov edi, dword [ebp - 0x48]
xor ecx, ecx
test esi, esi
je 0x439360
jmp 0x439350
movzx eax, byte [ecx + 0x468340]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x439350
xor eax, eax
mov word [edi + esi*2], ax
mov dword [ebp - 0x44], esi
push 0x10
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
push dword [ebx + 4]
call dword [0x4657c4]
cmp dword [ebp - 0x18], 0
je 0x43943a
cmp byte [ebx + 0x156], 0
jne 0x43943a
mov ecx, ebx
mov byte [ebx + 0x155], 1
call fcn.00439c80
jmp 0x439445
cmp dword [ebp - 0x18], 0
jne 0x439384
cmp dword [ebp - 0x20], 0
mov byte [ebx + 0x223], 1
je 0x43943a
cmp dword [ebp - 0x2c], 0
jne 0x439429
xor esi, esi
inc esi
cmp byte [esi + 0x468340], 0
jne 0x4393c3
cmp esi, dword [ebp - 0x28]
jbe 0x439400
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e549
push dword [ebp - 0x30]
mov edi, eax
call fcn.0045e2f3
add esp, 8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], esi
jmp 0x439403
mov edi, dword [ebp - 0x30]
xor ecx, ecx
test esi, esi
je 0x439420
lea esp, [esp]
movzx eax, byte [ecx + 0x468340]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x439410
xor eax, eax
mov word [edi + esi*2], ax
mov dword [ebp - 0x2c], esi
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebx + 4]
call dword [0x4657c4]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push dword [ebp - 0x24]
call fcn.0045e2f3
push dword [ebp - 0x30]
call fcn.0045e2f3
push dword [ebp - 0x3c]
call fcn.0045e2f3
push dword [ebp - 0x48]
call fcn.0045e2f3
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e090
mov esp, ebp
pop ebp
ret