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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov edx, dword [ebp + 8]
mov ecx, dword [0x4aa178]
mov al, 1
cmp al, byte [edx + 1]
push ebx
push esi
sbb esi, esi
and esi, dword [0x4aa17c]
push edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], esi
test ecx, ecx
je 0x437aac
call fcn.00412bb0
test esi, esi
je 0x437ab7
mov ecx, esi
call fcn.00412bb0
mov eax, dword [0x4a6920]
movzx edi, word [eax + 0xd0]
xor esi, esi
xor ebx, ebx
and edi, 3
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
cmp edi, 2
je 0x437b3f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x14], eax
test eax, eax
je 0x437b3f
mov ecx, eax
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x437b3f
test edi, edi
jne 0x437b08
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x437b28
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 0x437b3f
add esi, dword [esp + 0x7c]
add ebx, dword [esp + 0x80]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
mov edi, dword [ebp + 0x1c]
add dword [ebp + 0xc], esi
add dword [ebp + 0x10], ebx
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], ebx
xor eax, eax
push 0x2e
push edi
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.004873da
mov esi, eax
add esp, 8
test esi, esi
je 0x437bc6
inc esi
push 0x49d9b4
push esi
call fcn.004851e1
add esp, 8
test eax, eax
je 0x437bb0
push 0x49d9b8
push esi
call fcn.004851e1
add esp, 8
test eax, eax
je 0x437bb0
push 0x49d9bc
push esi
call fcn.004851e1
add esp, 8
test eax, eax
jne 0x437bc6
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 ebx, edi
mov al, byte [ebx]
cmp al, 0x20
je 0x437bd2
cmp al, 9
jne 0x437bd5
inc ebx
jmp 0x437bc8
cmp byte [ebx], 0x2a
jne 0x437e8a
movsx eax, byte [ebx + 1]
inc ebx
push eax
call fcn.00487a25
add esp, 4
cmp eax, 0x48
je 0x437da2
cmp eax, 0x57
je 0x437d34
push 4
push str.Icon
push ebx
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x437c45
add ebx, 4
mov eax, ebx
call fcn.0040ce30
test al, al
je 0x437c36
push 0x10
push 0
push ebx
call fcn.00486b64
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x437e0a
push ebx
call fcn.00486766
mov dword [esp + 0x18], eax
jmp 0x437e07
push 5
push str.Trans
push ebx
call fcn.00485c60
add esp, 0xc
test eax, eax
jne 0x437ce0
push 0x1f
add ebx, 5
lea ecx, [esp + 0xac]
push ebx
push ecx
call fcn.00488180
add esp, 0xc
mov edi, 0x49a050
lea eax, [esp + 0xa8]
mov byte [esp + 0xc7], 0
call fcn.004093b0
test eax, eax
je 0x437c93
mov byte [eax], 0
lea esi, [esp + 0xa8]
call fcn.00473440
cmp eax, 0xffffffff
jne 0x437cbc
push 0x10
mov edx, esi
push 0
push edx
call fcn.00486b64
add esp, 0xc
mov dword [esp + 0x34], eax
jmp 0x437e0a
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 0x437e0a
mov eax, ebx
call fcn.0040ce30
test al, al
je 0x437cfe
push 0x10
push 0
push ebx
call fcn.00486b64
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x437d0b
push ebx
call fcn.00486766
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jns 0x437d1c
mov dword [esp + 0x10], 0
jmp 0x437e0a
cmp eax, 0xff
jle 0x437e0a
mov dword [esp + 0x10], 0xff
jmp 0x437e0a
lea esi, [ebx + 1]
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x20
je 0x437d4c
cmp cl, 9
jne 0x437d4f
inc eax
jmp 0x437d40
mov cl, byte [eax]
test cl, cl
je 0x437d96
cmp cl, 0x2d
je 0x437d5f
cmp cl, 0x2b
jne 0x437d60
inc eax
cmp byte [eax], 0x30
jne 0x437d96
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x437d72
cmp cl, 0x58
jne 0x437d96
movsx ecx, byte [eax + 2]
push ecx
call fcn.00486909
add esp, 4
test eax, eax
je 0x437d96
push 0x10
push 0
push esi
call fcn.00486b64
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x437e0a
push esi
call fcn.00486766
mov dword [esp + 0x28], eax
jmp 0x437e07
lea esi, [ebx + 1]
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x437db3
cmp cl, 9
jne 0x437db6
inc eax
jmp 0x437da7
mov cl, byte [eax]
test cl, cl
je 0x437dfd
cmp cl, 0x2d
je 0x437dc6
cmp cl, 0x2b
jne 0x437dc7
inc eax
cmp byte [eax], 0x30
jne 0x437dfd
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x437dd9
cmp cl, 0x58
jne 0x437dfd
movsx edx, byte [eax + 2]
push edx
call fcn.00486909
add esp, 4
test eax, eax
je 0x437dfd
push 0x10
push 0
push esi
call fcn.00486b64
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x437e0a
push esi
call fcn.00486766
mov dword [esp + 0x2c], eax
add esp, 4
test ebx, ebx
je 0x437e34
mov dl, byte [ebx]
test dl, dl
je 0x437e34
mov ecx, 0x49a050
mov al, 0x20
jmp 0x437e20
cmp dl, al
je 0x437e66
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x437e20
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x437e14
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe8], 0
jne 0x438519
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49a084
push ecx
call fcn.004750c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea edi, [ebx + 1]
mov eax, edi
jmp 0x437e70
mov cl, byte [eax]
cmp cl, 0x20
je 0x437e7c
cmp cl, 9
jne 0x437e7f
inc eax
jmp 0x437e70
cmp byte [eax], 0x2a
mov ebx, eax
je 0x437bde
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
push ebx
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
call fcn.004738c0
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x6c], esi
cmp esi, ebx
je 0x437e34
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x50], edi
cmp edi, ebx
jne 0x437ef6
cmp byte [esp + 0x1c], bl
jne 0x437e34
cmp dword [esp + 0x2c], 1
push esi
jne 0x437eeb
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x437e34
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x437e34
cmp dword [esp + 0x2c], 1
mov dword [esp + 0x74], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0xd], bl
jne 0x437f82
lea edx, [esp + 0x94]
push edx
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x437f6b
push 1
lea eax, [esp + 0x12]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, edi
call fcn.00437120
mov ecx, dword [esp + 0xb8]
add esp, 0x14
push ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0xa0]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.00474250
mov esi, eax
add esp, 4
mov dword [esp + 0x6c], eax
cmp esi, ebx
je 0x437e34
push 8
lea eax, [esp + 0x12]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
mov eax, edi
call fcn.00437120
add esp, 0x14
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x4381e7
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 0x50]
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 + 0x74], edi
test edi, edi
je 0x4381e7
mov ecx, dword [esp + 0x50]
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4381e7
mov edx, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x70], eax
test eax, eax
je 0x4381e7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x50]
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 0x4381e7
push 8
lea eax, [esp + 0x13]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, edi
call fcn.00437120
mov edx, eax
add esp, 0x14
mov dword [esp + 0x28], edx
test edx, edx
je 0x4381e7
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x30]
imul ecx, dword [esp + 0x48]
imul esi, dword [esp + 0x64]
cmp byte [esp + 0xe], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
jne 0x43807d
cmp byte [esp + 0xf], 0
je 0x4380be
cmp dword [esp + 0x34], 0xffffffff
je 0x43808c
and dword [esp + 0x34], 0xf8f8f8
xor eax, eax
test esi, esi
jle 0x43809e
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, esi
jl 0x438092
mov edi, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
jle 0x4380d9
jmp 0x4380b0
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x4380b0
jmp 0x4380c2
mov edi, dword [esp + 0x3c]
test ecx, ecx
jle 0x4380d9
lea eax, [edi + 3]
lea esp, [esp]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x4380d0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jge 0x4382a9
test esi, esi
jle 0x4380f9
lea eax, [edx + 3]
mov ecx, esi
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x4380f0
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x4c], esi
jle 0x438491
mov ebx, dword [edi]
mov dword [esp + 0x54], ebx
nop
mov ecx, dword [esp + 0x28]
lea edi, [esi*4]
cmp dword [edi + ecx], ebx
je 0x438137
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43812d
cmp dword [eax], 0
jne 0x438137
cmp ebx, dword [esp + 0x34]
jne 0x438295
mov ecx, dword [esp + 0x30]
mov eax, esi
cdq
idiv ecx
mov esi, dword [esp + 0x64]
sub esi, eax
cmp dword [esp + 0x48], esi
jg 0x438291
sub ecx, edx
cmp dword [esp + 0x40], ecx
jg 0x438291
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0xd], 1
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x44], ebx
jle 0x4381eb
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 0x4381b6
cmp dword [esp + 0x38], 0
je 0x4381ac
mov edi, dword [esp + 0x58]
cmp dword [edi + eax], 0
jne 0x4381b6
cmp edx, dword [esp + 0x34]
jne 0x438288
inc ebx
cmp ebx, dword [esp + 0x40]
jge 0x4381c0
inc esi
jmp 0x4381d5
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 0x438190
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x1c], 0
jne 0x43820a
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x74]
test edi, edi
je 0x438229
mov eax, dword [esp + 0x70]
test eax, eax
je 0x438222
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 0x438238
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x438249
push eax
call fcn.004851f8
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43825a
push eax
call fcn.004851f8
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x437e34
push eax
call fcn.004851f8
add esp, 4
cmp byte [esp + 0xd], 0
jne 0x4384ad
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esp + 0x54]
mov byte [esp + 0xd], 0
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x4c]
jl 0x438110
jmp 0x438491
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x4c], esi
jle 0x438491
mov ecx, dword [esp + 0x30]
lea ecx, [ecx]
mov eax, esi
cdq
idiv ecx
mov edi, dword [esp + 0x64]
sub edi, eax
cmp dword [esp + 0x48], edi
jg 0x438482
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x40], eax
jg 0x438482
xor eax, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x44], eax
jle 0x4381eb
mov eax, dword [esp + 0x3c]
lea ecx, [esi*4]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x54], esi
mov edi, eax
mov dword [esp + 0x58], ecx
movzx eax, byte [edi + 2]
mov dl, byte [edi + 1]
cmp ebx, eax
jle 0x438336
mov byte [esp + 0xe], 0
jmp 0x43833e
mov cl, al
sub cl, bl
mov byte [esp + 0xe], cl
movzx edx, dl
mov dword [esp + 0x7c], edx
cmp ebx, edx
jle 0x438350
mov byte [esp + 0x1e], 0
jmp 0x43835e
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 0x43836c
mov byte [esp + 0x1f], 0
jmp 0x43837a
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 0x438394
mov eax, 0xff
mov byte [esp + 0x1d], al
jmp 0x43839f
add al, bl
mov byte [esp + 0x1d], al
mov eax, 0xff
mov esi, eax
sub esi, edx
cmp ebx, esi
jle 0x4383ad
mov byte [esp + 0x1b], al
jmp 0x4383b3
add dl, bl
mov byte [esp + 0x1b], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x4383c1
mov byte [esp + 0xf], al
jmp 0x4383c7
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 0x4383fe
cmp cl, byte [esp + 0x1d]
ja 0x4383fe
cmp dl, byte [esp + 0x1e]
jb 0x4383fe
cmp dl, byte [esp + 0x1b]
ja 0x4383fe
cmp al, byte [esp + 0x1f]
jb 0x4383fe
cmp al, byte [esp + 0xf]
jbe 0x438417
cmp dword [esp + 0x38], 0
je 0x43840f
mov eax, dword [esp + 0x58]
cmp dword [edi + eax], 0
jne 0x438417
mov ecx, dword [esp + 0x34]
cmp dword [edi], ecx
jne 0x438471
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x40]
jge 0x43842d
inc esi
mov dword [esp + 0x2c], esi
jmp 0x438452
mov eax, dword [esp + 0x30]
lea ecx, [eax*4]
add dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x54], 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 0x4381e7
mov ebx, dword [esp + 0x10]
jmp 0x438324
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0xd], 0
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x4c]
jl 0x4382c0
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push edx
call fcn.004750c0
jmp 0x4381eb
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4384d4
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x60]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x4384f9
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
sub eax, dword [esp + 0x64]
add eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push edx
call fcn.004750c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 8]
push 0x498819
push 0
push 0x49a084
call fcn.0042d220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18