Function at 0x439950
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov edx, dword [ebp + 8]
mov ecx, dword [0x4c9450]
mov al, 1
cmp al, byte [edx + 1]
push ebx
push esi
sbb esi, esi
and esi, dword [0x4c9454]
push edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], esi
test ecx, ecx
je 0x43998c
call fcn.004139f0
test esi, esi
je 0x439997
mov ecx, esi
call fcn.004139f0
mov eax, dword [0x4c590c]
movzx ebx, word [eax + 0xf0]
xor esi, esi
xor edi, edi
and ebx, 3
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
cmp ebx, 2
je 0x439a1f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x14], eax
test eax, eax
je 0x439a1f
mov ecx, eax
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x439a1f
test ebx, ebx
jne 0x4399e8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x439a08
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x439a1f
add esi, dword [esp + 0x7c]
add edi, dword [esp + 0x80]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov ebx, dword [ebp + 0x1c]
add dword [ebp + 0xc], esi
add dword [ebp + 0x10], edi
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], edi
xor eax, eax
push 0x2e
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004902c4
mov esi, eax
add esp, 8
test esi, esi
je 0x439aa8
add esi, 2
push 0x4abf60
push esi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x439a92
push 0x4abf68
push esi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x439a92
push 0x4abf70
push esi
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x439aa8
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call esi
push 0x32
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x28], eax
mov edi, ebx
lea ebx, [ebx]
movzx eax, word [edi]
cmp eax, 0x20
je 0x439abd
cmp eax, 9
jne 0x439ac2
add edi, 2
jmp 0x439ab0
cmp word [edi], 0x2a
jne 0x439da2
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00490702
movzx eax, ax
add esp, 4
cmp eax, 0x48
je 0x439c9e
cmp eax, 0x57
je 0x439c2b
push 4
push str.Icon
push edi
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x439b38
add edi, 8
mov eax, edi
call fcn.0040da30
test al, al
je 0x439b29
push 0x10
push 0
push edi
call fcn.0048fc1a
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x439d0f
push edi
call fcn.0048f7f6
mov dword [esp + 0x18], eax
jmp 0x439d0c
push 5
push str.Trans
push edi
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x439bd7
push 0x1f
add edi, 0xa
lea ecx, [esp + 0xac]
push edi
push ecx
call fcn.00491254
xor edx, edx
add esp, 0xc
mov ebx, 0x4a5734
lea eax, [esp + 0xa8]
mov word [esp + 0xe6], dx
call fcn.004095d0
test eax, eax
je 0x439b8a
xor ecx, ecx
mov word [eax], cx
lea esi, [esp + 0xa8]
call fcn.00476130
cmp eax, 0xffffffff
jne 0x439bb3
push 0x10
mov edx, esi
push 0
push edx
call fcn.0048fc1a
add esp, 0xc
mov dword [esp + 0x34], eax
jmp 0x439d0f
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ecx, cl
shl edx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x439d0f
mov eax, edi
call fcn.0040da30
test al, al
je 0x439bf5
push 0x10
push 0
push edi
call fcn.0048fc1a
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x439c02
push edi
call fcn.0048f7f6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jns 0x439c13
mov dword [esp + 0x10], 0
jmp 0x439d0f
cmp eax, 0xff
jle 0x439d0f
mov dword [esp + 0x10], 0xff
jmp 0x439d0f
lea esi, [edi + 2]
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x439c3d
cmp ecx, 9
jne 0x439c42
add eax, 2
jmp 0x439c30
movzx ecx, word [eax]
test cx, cx
je 0x439c92
cmp ecx, 0x2d
je 0x439c54
cmp ecx, 0x2b
jne 0x439c57
add eax, 2
cmp word [eax], 0x30
jne 0x439c92
movzx ecx, word [eax + 2]
cmp ecx, 0x78
je 0x439c6b
cmp ecx, 0x58
jne 0x439c92
movzx ecx, word [eax + 4]
push ecx
call fcn.0048fa28
add esp, 4
test eax, eax
je 0x439c92
push 0x10
push 0
push esi
call fcn.0048fc1a
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x439d0f
push esi
call fcn.0048f7f6
mov dword [esp + 0x28], eax
jmp 0x439d0c
lea esi, [edi + 2]
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x439cb0
cmp ecx, 9
jne 0x439cb5
add eax, 2
jmp 0x439ca3
movzx ecx, word [eax]
test cx, cx
je 0x439d02
cmp ecx, 0x2d
je 0x439cc7
cmp ecx, 0x2b
jne 0x439cca
add eax, 2
cmp word [eax], 0x30
jne 0x439d02
movzx ecx, word [eax + 2]
cmp ecx, 0x78
je 0x439cde
cmp ecx, 0x58
jne 0x439d02
movzx edx, word [eax + 4]
push edx
call fcn.0048fa28
add esp, 4
test eax, eax
je 0x439d02
push 0x10
push 0
push esi
call fcn.0048fc1a
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x439d0f
push esi
call fcn.0048f7f6
mov dword [esp + 0x2c], eax
add esp, 4
test edi, edi
je 0x439d4d
movzx eax, word [edi]
test ax, ax
je 0x439d4d
jmp 0x439d20
movzx edx, ax
mov ecx, 0x4a5734
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x439d7f
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x439d30
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x439d20
mov eax, dword [0x4c590c]
cmp byte [eax + 0x108], 0
jne 0x43a425
mov ecx, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a5794
push ecx
call fcn.00477e60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ebx, [edi + 2]
mov eax, ebx
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x439d91
cmp ecx, 9
jne 0x439d96
add eax, 2
jmp 0x439d84
cmp word [eax], 0x2a
mov edi, eax
je 0x439acc
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push 0
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push ebx
call fcn.00476630
mov esi, eax
add esp, 0x20
mov dword [esp + 0x68], esi
test esi, esi
je 0x439d4d
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x48], edi
test edi, edi
jne 0x439e10
cmp byte [esp + 0x1c], al
jne 0x439d4d
cmp dword [esp + 0x2c], 1
push esi
jne 0x439e05
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x439d4d
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x439d4d
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
cmp dword [esp + 0x2c], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0xd], al
jne 0x439e9c
lea edx, [esp + 0x94]
push edx
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x439e85
push 1
lea eax, [esp + 0x12]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, edi
call fcn.00439030
mov ecx, dword [esp + 0xb8]
add esp, 0x14
push ecx
mov dword [esp + 0x3c], eax
call ebx
mov edx, dword [esp + 0xa0]
push edx
call ebx
push esi
call fcn.00476f90
mov esi, eax
add esp, 4
mov dword [esp + 0x68], eax
test esi, esi
je 0x439d4d
push 8
lea eax, [esp + 0x12]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
mov eax, edi
call fcn.00439030
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
je 0x43a0f7
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 0x48]
sub esi, dword [ebp + 0xc]
sub ebx, dword [ebp + 0x10]
push eax
inc esi
inc ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x78], edi
test edi, edi
je 0x43a0f7
mov ecx, dword [esp + 0x48]
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43a0f7
mov edx, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x43a0f7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
push 0xcc0020
push eax
push ecx
push edx
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x43a0f7
push 8
lea eax, [esp + 0x13]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, edi
call fcn.00439030
mov esi, eax
add esp, 0x14
mov dword [esp + 0x28], esi
test esi, esi
je 0x43a0f7
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
imul ecx, dword [esp + 0x4c]
imul edx, dword [esp + 0x5c]
cmp byte [esp + 0xe], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x70], edx
jne 0x439f97
cmp byte [esp + 0xf], 0
je 0x439fd4
cmp dword [esp + 0x34], 0xffffffff
je 0x439fa6
and dword [esp + 0x34], 0xf8f8f8
xor eax, eax
test edx, edx
jle 0x439fbc
lea esp, [esp]
and dword [esi + eax*4], 0xf8f8f8
inc eax
cmp eax, edx
jl 0x439fb0
mov edi, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
jle 0x439fe9
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x439fc6
jmp 0x439fd8
mov edi, dword [esp + 0x3c]
test ecx, ecx
jle 0x439fe9
lea eax, [edi + 3]
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x439fe0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jge 0x43a1b9
test edx, edx
jle 0x43a009
lea eax, [esi + 3]
mov ecx, edx
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x43a000
xor esi, esi
mov dword [esp + 0x20], esi
test edx, edx
jle 0x43a39d
mov ebx, dword [edi]
mov dword [esp + 0x50], ebx
lea ecx, [ecx]
mov ecx, dword [esp + 0x28]
lea edi, [esi*4]
cmp dword [edi + ecx], ebx
je 0x43a047
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43a03d
cmp dword [eax], 0
jne 0x43a047
cmp ebx, dword [esp + 0x34]
jne 0x43a1a5
mov ecx, dword [esp + 0x30]
mov eax, esi
cdq
idiv ecx
mov esi, dword [esp + 0x5c]
sub esi, eax
cmp dword [esp + 0x4c], esi
jg 0x43a1a1
sub ecx, edx
cmp dword [esp + 0x40], ecx
jg 0x43a1a1
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0xd], 1
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x44], ebx
jle 0x43a0fb
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub edx, eax
mov byte [esp + 0xd], 1
mov ecx, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x58], edx
mov edi, edi
mov edx, dword [eax]
mov edi, dword [esp + 0x28]
cmp dword [edi + esi*4], edx
je 0x43a0c6
cmp dword [esp + 0x38], 0
je 0x43a0bc
mov edi, dword [esp + 0x58]
cmp dword [edi + eax], 0
jne 0x43a0c6
cmp edx, dword [esp + 0x34]
jne 0x43a198
inc ebx
cmp ebx, dword [esp + 0x40]
jge 0x43a0d0
inc esi
jmp 0x43a0e5
mov edx, dword [esp + 0x30]
lea esi, [edx*4]
add dword [esp + 0x2c], esi
xor ebx, ebx
add ecx, edx
mov esi, ecx
mov edx, dword [esp + 0x24]
inc edx
add eax, 4
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x44]
jl 0x43a0a0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x1c], 0
jne 0x43a11a
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x78]
test edi, edi
je 0x43a139
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x43a132
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43a148
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43a159
push eax
call fcn.0048f817
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43a16a
push eax
call fcn.0048f817
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x439d4d
push eax
call fcn.0048f817
add esp, 4
cmp byte [esp + 0xd], 0
jne 0x43a3b9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esp + 0x50]
mov byte [esp + 0xd], 0
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x70]
jl 0x43a020
jmp 0x43a39d
xor esi, esi
mov dword [esp + 0x20], esi
test edx, edx
jle 0x43a39d
mov eax, esi
cdq
idiv dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
cmp dword [esp + 0x4c], ecx
jg 0x43a38e
mov eax, dword [esp + 0x30]
sub eax, edx
cmp dword [esp + 0x40], eax
jg 0x43a38e
xor eax, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x44], eax
jle 0x43a0fb
mov eax, dword [esp + 0x38]
lea ecx, [esi*4]
sub eax, edi
mov byte [esp + 0xd], 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x58], eax
lea esp, [esp]
movzx eax, byte [edi + 2]
mov dl, byte [edi + 1]
cmp ebx, eax
jle 0x43a242
mov byte [esp + 0xe], 0
jmp 0x43a24a
mov cl, al
sub cl, bl
mov byte [esp + 0xe], cl
movzx edx, dl
mov dword [esp + 0x7c], edx
cmp ebx, edx
jle 0x43a25c
mov byte [esp + 0x1e], 0
jmp 0x43a26a
mov ebx, dword [esp + 0x10]
mov cl, dl
sub cl, byte [esp + 0x10]
mov byte [esp + 0x1e], cl
movzx ecx, byte [edi]
cmp ebx, ecx
jle 0x43a278
mov byte [esp + 0x1f], 0
jmp 0x43a286
mov dl, cl
sub dl, byte [esp + 0x10]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x10]
mov esi, 0xff
sub esi, eax
cmp ebx, esi
jle 0x43a2a0
mov eax, 0xff
mov byte [esp + 0x1d], al
jmp 0x43a2ab
add al, bl
mov byte [esp + 0x1d], al
mov eax, 0xff
mov esi, eax
sub esi, edx
cmp ebx, esi
jle 0x43a2b9
mov byte [esp + 0x1b], al
jmp 0x43a2bf
add dl, bl
mov byte [esp + 0x1b], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x43a2cd
mov byte [esp + 0xf], al
jmp 0x43a2d3
add cl, bl
mov byte [esp + 0xf], cl
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov cl, byte [eax + esi*4 + 2]
mov dl, byte [eax + esi*4 + 1]
mov al, byte [eax + esi*4]
cmp cl, byte [esp + 0xe]
jb 0x43a30a
cmp cl, byte [esp + 0x1d]
ja 0x43a30a
cmp dl, byte [esp + 0x1e]
jb 0x43a30a
cmp dl, byte [esp + 0x1b]
ja 0x43a30a
cmp al, byte [esp + 0x1f]
jb 0x43a30a
cmp al, byte [esp + 0xf]
jbe 0x43a323
cmp dword [esp + 0x38], 0
je 0x43a31b
mov eax, dword [esp + 0x58]
cmp dword [edi + eax], 0
jne 0x43a323
mov ecx, dword [esp + 0x34]
cmp dword [edi], ecx
jne 0x43a37d
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x40]
jge 0x43a339
inc esi
mov dword [esp + 0x2c], esi
jmp 0x43a35e
mov eax, dword [esp + 0x30]
lea ecx, [eax*4]
add dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x24]
inc eax
add edi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x44]
jge 0x43a0f7
mov ebx, dword [esp + 0x10]
jmp 0x43a230
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov byte [esp + 0xd], 0
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x70]
jl 0x43a1c7
mov edx, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a54c0
push edx
call fcn.00477e60
jmp 0x43a0fb
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x43a3e0
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x64]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x43a405
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
sub eax, dword [esp + 0x68]
add eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov edx, dword [0x4c9d08]
push 1
push 0
push 0xffffffffffffffff
push 0x4a296c
push edx
call fcn.00477e60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 8]
push 0x4a2868
push 0
push 0x4a5794
call fcn.0042e760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18