Function at 0x596e60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], 0
sete cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x596eef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
movzx edx, word [ecx + 0xb98]
cmp edx, 0x2655
je 0x596eed
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0xd30f
mov word [edx + 0xbac], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0xd30f
mov word [eax + 0xbac], cx
xor eax, eax
jmp 0x5977a4
jmp 0x596f13
push 0
push 0x40
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
add ecx, 0xb70
push ecx
call fcn.005295a0
add esp, 0x10
push 4
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005c3b50
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x59701b
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x596f45
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
jne 0x596f4c
xor eax, eax
jmp 0x5977a4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 1
jmp 0x596f65
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 4
jge 0x596f7e
mov ecx, dword [ebp - 0x2c]
shl ecx, 3
mov edx, dword [ebp - 0x24]
shr edx, cl
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x596f5c
mov dword [ebp - 0x2c], 0
jmp 0x596f90
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 4
jge 0x596fa9
mov ecx, dword [ebp - 0x2c]
shl ecx, 3
mov edx, dword [ebp - 0x20]
shr edx, cl
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x596f87
mov eax, dword [ebp - 0xc]
and eax, 0x7f
mov ecx, dword [ebp - 0x24]
and ecx, 0x7f
cmp eax, ecx
je 0x597016
cmp dword [ebp + 8], 0
je 0x59700e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x596fdd
xor eax, eax
je 0x596fdd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x30], edx
jmp 0x596fe4
mov dword [ebp - 0x30], 0xffffffd4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x21d
push 0xffffffffffffffd4
mov edx, dword [ebp + 8]
push edx
call fcn.00577350
add esp, 0x1c
or eax, 0xffffffff
jmp 0x5977a4
jmp 0x5970dd
mov eax, dword [ebp - 0x1c]
xor eax, 0xa3ef0000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xffff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
and edx, 0x7f
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x24]
and eax, 0xffffff80
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0xc], 0
jne 0x597074
lea ecx, [ebp - 0x28]
push ecx
call fcn.005c3cd0
add esp, 4
cmp dword [ebp - 8], eax
je 0x5970dd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffff3f
je 0x5970d5
cmp dword [ebp + 8], 0
je 0x5970d5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x5970a7
xor ecx, ecx
je 0x5970a7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x34], eax
jmp 0x5970ae
mov dword [ebp - 0x34], 0xffffffd4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov eax, dword [ebp + 8]
push eax
call fcn.00577350
add esp, 0x1c
or eax, 0xffffffff
jmp 0x5977a4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x80000000
jbe 0x597112
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
cmp eax, 4
jge 0x597112
mov dword [ebp - 0x38], 1
jmp 0x597119
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
and edx, 0x40000000
je 0x597130
cmp dword [ebp - 0x14], 0
je 0x597148
cmp dword [ebp - 0x14], 0
je 0x597745
mov eax, dword [ebp - 0x20]
and eax, 0x400000
je 0x597745
cmp dword [ebp - 4], 0
je 0x59718b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0xd30f
mov word [eax + 0xbac], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0xd30f
mov word [ecx + 0xbac], dx
xor eax, eax
jmp 0x5977a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
cmp dword [ecx + 0x1dc8], 0
je 0x597218
mov edx, dword [ebp - 0x24]
and edx, 0x100
jne 0x597218
cmp dword [ebp + 8], 0
je 0x597200
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x5971cc
xor ecx, ecx
je 0x5971cc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x3c], eax
jmp 0x5971d3
mov dword [ebp - 0x3c], 0xffffff3f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x5215
push 0xffffff3f
mov eax, dword [ebp + 8]
push eax
call fcn.00577350
add esp, 0x1c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov byte [edx + 0x1dd0], 0
or eax, 0xffffffff
jmp 0x5977a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
cmp dword [ecx + 0x1dcc], 0x64
jne 0x597257
mov edx, dword [ebp - 0x24]
and edx, 0x100
jne 0x597247
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov byte [ecx + 0x1dd0], 0
jmp 0x597257
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov byte [eax + 0x1dd0], 1
mov ecx, dword [ebp - 0x24]
and ecx, 0x200
je 0x597275
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov dword [eax + 0x1e18], 1
mov ecx, dword [ebp - 0x28]
and ecx, 0x100000
je 0x5972a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x2655
mov word [ecx + 0xb98], dx
jmp 0x597335
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
push eax
push 0x69a4c8
push str.a001
call fcn.00536983
add esp, 0xc
push 0
push str.a001
call fcn.00593e20
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00593290
add esp, 0xc
test eax, eax
je 0x597335
cmp dword [ebp + 8], 0
je 0x59732d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x5972ff
xor eax, eax
je 0x5972ff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x40], edx
jmp 0x597306
mov dword [ebp - 0x40], 0xffffffce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x33
push 0xffffffffffffffce
mov edx, dword [ebp + 8]
push edx
call fcn.00577350
add esp, 0x1c
or eax, 0xffffffff
jmp 0x5977a4
mov eax, dword [ebp - 0x28]
and eax, 2
je 0x597358
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x20
mov word [eax + 0xb72], cx
mov edx, dword [ebp - 0x28]
and edx, 4
je 0x59737b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x3e1
mov word [edx + 0xb74], ax
mov ecx, dword [ebp - 0x28]
and ecx, 8
je 0x59739e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0xabcd
mov word [ecx + 0xb76], dx
mov eax, dword [ebp - 0x28]
and eax, 0x10
je 0x5973c1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x54
mov word [eax + 0xb78], cx
mov edx, dword [ebp - 0x28]
and edx, 0x20
je 0x5973e4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x5e
mov word [edx + 0xb7a], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x40
je 0x597407
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x7f
mov word [ecx + 0xb7c], dx
mov eax, dword [ebp - 0x28]
and eax, 0x80
je 0x59742c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x4e9b
mov word [eax + 0xb7e], cx
mov edx, dword [ebp - 0x28]
and edx, 0x4000
je 0x597452
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0xdead
mov word [edx + 0xb8c], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x8000
je 0x597478
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0xfeef
mov word [ecx + 0xb8e], dx
mov eax, dword [ebp - 0x28]
and eax, 0x100
je 0x59749d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0xc7
mov word [eax + 0xb80], cx
mov edx, dword [ebp - 0x28]
and edx, 0x200
je 0x5974c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x1538
mov word [edx + 0xb82], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x800
je 0x5974e9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0xc
mov word [ecx + 0xb86], dx
mov eax, dword [ebp - 0x28]
and eax, 0x800
je 0x59750e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0xdcba
mov word [eax + 0xb86], cx
mov edx, dword [ebp - 0x28]
and edx, 0x1000
je 0x597534
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x3ce
mov word [edx + 0xb88], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x2000
je 0x59755a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x22b
mov word [ecx + 0xb8a], dx
mov eax, dword [ebp - 0x28]
and eax, 0x10000
je 0x59757f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x46
mov word [eax + 0xb90], cx
mov edx, dword [ebp - 0x28]
and edx, 0x20000
je 0x5975a5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0xdd
mov word [edx + 0xb92], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x40000
je 0x5975cb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x70
mov word [ecx + 0xb94], dx
mov eax, dword [ebp - 0x28]
and eax, 0x80000
je 0x5975f0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x15a6
mov word [eax + 0xb96], cx
mov edx, dword [ebp - 0x28]
and edx, 0x200000
je 0x597616
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x511
mov word [edx + 0xb9a], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x400000
je 0x59763c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x1204
mov word [ecx + 0xb9c], dx
mov eax, dword [ebp - 0x28]
and eax, 0x800000
je 0x597661
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x2a34
mov word [eax + 0xb9e], cx
mov edx, dword [ebp - 0x28]
and edx, 0x1000000
je 0x597687
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x12ef
mov word [edx + 0xba0], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x2000000
je 0x5976ad
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x9320
mov word [ecx + 0xba2], dx
mov eax, dword [ebp - 0x28]
and eax, 0x4000000
je 0x5976d2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x7032
mov word [eax + 0xba4], cx
mov edx, dword [ebp - 0x28]
and edx, 0x8000000
je 0x5976f8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d38]
mov eax, 0x836a
mov word [edx + 0xba6], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0x10000000
je 0x59771e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d38]
mov edx, 0x336
mov word [ecx + 0xba8], dx
mov eax, dword [ebp - 0x28]
and eax, 0x20000000
je 0x597743
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d38]
mov ecx, 0x9969
mov word [eax + 0xbaa], cx
jmp 0x5977a2
cmp dword [ebp - 4], 0
jne 0x5977a2
cmp dword [ebp + 8], 0
je 0x59779d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x59776f
xor eax, eax
je 0x59776f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x44], edx
jmp 0x597776
mov dword [ebp - 0x44], 0xffffffd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x34
push 0xffffffffffffffd0
mov edx, dword [ebp + 8]
push edx
call fcn.00577350
add esp, 0x1c
or eax, 0xffffffff
jmp 0x5977a4
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00532cdb
mov esp, ebp
pop ebp
ret