Function at 0x408710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov eax, dword [0x77347c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x20], 0x93e
jne 0x4087bd
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x1d
je 0x40877e
cmp dword [ebp - 0x4c], 0x7c
je 0x408749
cmp dword [ebp - 0x4c], 0x85
je 0x40876f
jmp 0x4087a3
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x28]
imul eax, dword [ebp - 0x28], 0
sub edx, eax
mov ecx, 0x9ef
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
and ecx, eax
or edx, ecx
mov dword [ebp - 0x24], edx
jmp 0x4087b2
movzx ecx, byte [ebp - 0x1c]
and ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x4087b2
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
sub eax, edx
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, 0x60
and ecx, dword [ebp - 0x28]
or eax, ecx
or eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
jmp 0x4087b2
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sub eax, edx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4087c9
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
movzx edx, byte [ebp - 0x14]
imul eax, edx, 0x649
movzx ecx, byte [ebp - 0x1c]
add eax, ecx
and eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
je 0x4087f5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jne 0x40881b
cmp dword [ebp - 0x1c], 0
ja 0x40881b
mov ecx, dword [ebp - 0x18]
and ecx, 0
movzx edx, byte [ebp - 0x18]
movzx eax, word [ebp - 4]
sub edx, eax
or ecx, edx
or ecx, 0x976
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x408825
mov ecx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x14]
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x10]
and edx, dword [ebp - 0x28]
and edx, 0
or edx, dword [ebp - 0x24]
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, eax
or edx, ecx
mov eax, dword [ebp - 0x28]
add eax, 0x217
or edx, eax
mov word [ebp - 0x18], dx
push 0x40
push 0x1000
push 0x109129
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x40889e
movzx edx, byte [ebp - 8]
mov eax, 0x860
sub eax, dword [ebp - 8]
and edx, eax
or edx, dword [ebp - 0xc]
xor ecx, ecx
sub ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
or edx, ecx
mov dword [ebp - 0x1c], edx
push str.asne
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
jmp 0x4088bc
movzx edx, byte [ebp - 0x28]
imul edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
lea ecx, [edx + eax - 0x995]
movzx edx, byte [ebp - 0x14]
and edx, 0
or ecx, edx
mov dword [ebp - 4], ecx
movzx eax, word [ebp - 0x28]
add eax, dword [ebp - 4]
movzx ecx, byte [ebp - 0x28]
add eax, dword [ebp - 0xc]
add ecx, eax
mov edx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x1c]
and edx, eax
movzx ecx, byte [ebp - 0x14]
add ecx, 0x30b
and edx, ecx
mov dword [ebp - 0x20], edx
movzx edx, word [ebp - 8]
add edx, dword [ebp - 0x28]
and edx, 0x566
mov eax, 0x8d2
mov ecx, dword [ebp - 8]
shl eax, cl
or edx, eax
mov dword [ebp - 0xc], edx
movzx ecx, byte [ebp - 0x1c]
add ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + edx + 0x355]
and eax, dword [ebp - 8]
or eax, dword [ebp - 0x28]
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x34]
add ecx, 0xac000
mov dword [ebp - 0x34], ecx
movzx edx, byte [ebp - 0xc]
movzx eax, word [ebp - 0x14]
sub edx, eax
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 0x18]
sub eax, ecx
and edx, eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xa95
or edx, ecx
or edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov edx, 0x898
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x10]
movzx ecx, word [ebp - 0x1c]
add ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x18]
and eax, ecx
or edx, eax
movzx eax, word [ebp - 0xc]
or edx, eax
mov dword [ebp - 4], edx
movzx ecx, word [ebp - 0x14]
or ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
and edx, 0x714
or ecx, edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x28], ecx
movzx ecx, word [ebp - 0xc]
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
and ecx, edx
and ecx, dword [ebp - 0x28]
movzx eax, byte [ebp - 8]
or ecx, eax
mov word [ebp - 0x24], cx
mov dword [ebp - 0x54], 0x760998
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
movzx ecx, byte [ebp - 0xc]
add eax, ecx
xor edx, edx
sub edx, dword [ebp - 0x10]
or eax, edx
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + ecx + 0x69b]
sub ecx, dword [ebp - 0x10]
or eax, ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
movzx edx, word [ebp - 0x28]
add edx, dword [ebp - 0x14]
movzx ecx, byte [ebp - 0x28]
shl edx, cl
and edx, dword [ebp - 0x28]
mov eax, 0x7bf
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
and edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x28]
movzx edx, byte [ebp - 4]
sub edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x20]
sub edx, eax
and edx, dword [ebp - 0x20]
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
movzx edx, byte [ebp - 0x1c]
add ecx, edx
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
or ecx, eax
mov dword [ebp - 0x28], ecx
movzx ecx, word [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
or ecx, dword [ebp - 0x24]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 4]
or edx, 0x687
imul eax, dword [ebp - 0x1c], 0x25e
and eax, dword [ebp - 8]
or edx, eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x24]
or edx, ecx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0x457
jae 0x408aed
mov edx, 0xfffff557
sub edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0x10]
and eax, 0
or edx, eax
movzx ecx, word [ebp - 0x18]
movzx eax, byte [ebp - 0x10]
imul ecx, eax
add ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
or edx, ecx
mov dword [ebp - 0x20], edx
jmp 0x408b06
imul ecx, dword [ebp - 0xc], 0
movzx edx, byte [ebp - 0x24]
sub ecx, edx
add ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x14]
and ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x48], 0x6be9dbeb
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor ecx, ecx
sub ecx, eax
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
and edx, ecx
or edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x50], 0x7638f9c
movzx edx, byte [ebp - 0xc]
add edx, dword [ebp - 0xc]
movzx eax, word [ebp - 0x14]
sub edx, eax
movzx ecx, word [ebp - 0x24]
add edx, dword [ebp - 0x10]
add ecx, edx
or ecx, dword [ebp - 0x20]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x28]
or edx, 0x26
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], 0x7206859f
movzx eax, byte [ebp - 0x28]
imul eax, dword [ebp - 0x1c]
imul ecx, eax, 0
add ecx, 0x9bb
sub ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 8]
and ecx, edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
je 0x408bae
cmp dword [ebp - 0x28], 0x11
jne 0x408bb4
mov cl, byte [ebp - 0x24]
mov byte [ebp - 0xc], cl
mov dword [ebp - 0x40], 0x7a782977
mov edx, dword [ebp - 0x28]
add edx, 0xa7b
and edx, 0x349
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
and eax, ecx
or edx, eax
mov dword [ebp - 0x24], edx
xor edx, edx
sub edx, dword [ebp - 0x14]
add edx, 0xa24
xor edx, dword [ebp - 0x20]
movzx eax, byte [ebp - 0xc]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
or edx, eax
mov dword [ebp - 4], edx
movzx ecx, word [ebp - 4]
or ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xa670
jae 0x40935e
mov edx, dword [ebp - 4]
add edx, 0x8ae
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 0x24]
sub edx, eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 8]
and edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
sub eax, 0x47
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x38
ja case.0x408c89.1
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x4093e0]
jmp dword [edx*4 + 0x4093cc]
mov eax, dword [ebp - 8]
sub eax, 0xb57
or eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
sub ecx, 0x338
or eax, ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x28]
and edx, dword [ebp - 4]
or eax, edx
mov word [ebp - 0x10], ax
jmp 0x408d50
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x14]
mov ecx, 0x927
sub ecx, eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x28]
add edx, eax
or ecx, edx
or ecx, 0x91
mov dword [ebp - 0x20], ecx
jmp 0x408d50
mov ecx, dword [ebp - 0x10]
add ecx, 0x21a
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx + 0x733]
and eax, dword [ebp - 8]
or eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
jmp 0x408d50
mov ecx, dword [ebp - 0x28]
and ecx, 0
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0x28]
imul edx, dword [ebp - 8]
and ecx, edx
mov eax, dword [ebp - 0x28]
sub eax, 0x792
or ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x408d50
movzx ecx, byte [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx - 0x8ab]
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x10]
or eax, ecx
or eax, dword [ebp - 0x18]
movzx edx, word [ebp - 8]
add edx, 0x3b4
or eax, edx
mov dword [ebp - 0xc], eax
movzx eax, word [ebp - 0x10]
movzx ecx, byte [ebp - 0x20]
imul ecx, dword [ebp - 0x1c]
add eax, ecx
movzx edx, word [ebp - 4]
and eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x10
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x28
ja case.0x408d93.1
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0x409430]
jmp dword [ecx*4 + 0x40941c]
movzx edx, word [ebp - 0x24]
mov eax, dword [ebp - 8]
sub eax, edx
add eax, 0x5b6
and eax, dword [ebp - 0x24]
movzx ecx, word [ebp - 0x24]
movzx edx, byte [ebp - 0x24]
sub ecx, edx
movzx edx, word [ebp - 0x18]
add ecx, edx
or eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x408e58
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, 0xb34
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x24]
lea ecx, [esi + ecx + 0x9e9]
shr edx, cl
and eax, edx
movzx edx, word [ebp - 0x1c]
and edx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 4], eax
jmp 0x408e58
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
or eax, 0x31e
mov ecx, dword [ebp - 8]
and ecx, dword [ebp - 8]
and ecx, 0x4fd
and ecx, dword [ebp - 0x10]
or eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x408e58
mov edx, 0xa3
sub edx, dword [ebp - 0x18]
movzx eax, word [ebp - 0x10]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
movzx ecx, byte [ebp - 8]
sub eax, ecx
or edx, eax
mov dword [ebp - 0x24], edx
jmp 0x408e58
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp - 4]
imul edx, dword [ebp - 0x18]
sub edx, dword [ebp - 8]
movzx eax, byte [ebp - 0x20]
mov ecx, dword [ebp - 4]
sub ecx, eax
sub ecx, 0x9c5
and edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x10]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x28]
or edx, eax
or edx, 0x7ca
or edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
movzx edx, byte [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub eax, edx
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebp - 8]
mov edx, dword [ebp - 0x18]
add edx, 0x260
sub edx, dword [ebp - 0x28]
and ecx, edx
mov word [ebp - 0xc], cx
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], 0x6d7
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
movzx edx, word [ebp - 0x10]
add ecx, edx
movzx eax, word [ebp - 0xc]
sub ecx, eax
or ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 0x410
or ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
movzx ecx, word [ebp - 4]
add ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
and ecx, dword [ebp - 0x20]
or eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 0x18]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
or eax, ecx
mov word [ebp - 0x10], ax
cmp dword [ebp - 0x18], 0x664
ja 0x408f2a
movzx edx, word [ebp - 0x14]
cmp dword [ebp - 0x18], edx
jne 0x408f2a
push str.swnttscteacsacsrfipm
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24], eax
jmp 0x408f4d
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x9a5
sub ecx, dword [ebp - 0x10]
movzx edx, byte [ebp - 0x1c]
sub ecx, edx
or eax, ecx
movzx ecx, word [ebp - 0x18]
or eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0x6dd
jb 0x408ed4
mov edx, 0x10f
sub edx, dword [ebp - 8]
or edx, dword [ebp - 4]
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
je 0x408fc5
mov ecx, dword [ebp - 0x28]
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x20]
add edx, 0x6a7
or ecx, edx
mov eax, dword [ebp - 0x1c]
and eax, 0
or ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0xc]
sub ecx, 0x117f
mov dword [ebp - 0x1c], ecx
jmp 0x408fe3
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0x10]
movzx eax, word [ebp - 4]
imul edx, eax
add edx, dword [ebp - 8]
movzx ecx, word [ebp - 0x20]
and edx, ecx
and edx, dword [ebp - 0x28]
mov word [ebp - 0x14], dx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xda
or eax, ecx
movzx edx, byte [ebp - 0x20]
or eax, edx
or eax, 0x2a5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], 0
jne 0x40912b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jae 0x409106
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
sub edx, 0x59
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0xac
ja case.0x40904a.1
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 0x409470]
jmp dword [ecx*4 + 0x40945c]
mov edx, dword [ebp - 0x14]
sub edx, 0x2e8
sub edx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x20]
sub edx, eax
mov ecx, dword [ebp - 0x24]
lea edx, [edx + ecx - 0x9e7]
mov dword [ebp - 0xc], edx
jmp 0x409104
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
and ecx, 0x29e
and ecx, 0xb2f
or eax, ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + edx - 0xa72]
or eax, edx
mov dword [ebp - 0x10], eax
jmp 0x409104
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x409104
movzx ecx, word [ebp - 4]
add ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
movzx edx, word [ebp - 0x14]
sub ecx, edx
xor eax, eax
shl eax, cl
and eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
and eax, ecx
or eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
jmp 0x409104
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
or edx, eax
movzx ecx, word [ebp - 0x14]
add ecx, 0xa07
and ecx, 0xae7
and ecx, dword [ebp - 0x24]
or edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x409120
mov edx, 0x531
sub edx, dword [ebp - 0x18]
and edx, 0
movzx eax, word [ebp - 4]
imul ecx, eax, 0x72b
or edx, ecx
mov dword [ebp - 0xc], edx
movzx edx, word [ebp - 4]
imul edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
movzx eax, byte [ebp - 0xc]
movzx ecx, word [ebp - 0x1c]
add eax, ecx
sub eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 4]
or eax, edx
movzx ecx, word [ebp - 0x18]
mov edx, 0x6dc
sub edx, ecx
add edx, dword [ebp - 0x24]
and edx, 0x40e
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x409170
movzx ecx, word [ebp - 0xc]
cmp dword [ebp - 0x14], ecx
je 0x40919f
cmp dword [ebp - 0x24], 0
je 0x40919f
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x20]
or edx, 0x2cb
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 0x24]
sub eax, ecx
or edx, eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4091ae
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jne 0x4091d8
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
jae 0x409208
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jbe 0x409208
cmp dword [ebp - 0xc], 0
jae 0x4091ff
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov byte [ebp - 0x14], al
movzx ecx, byte [ebp - 8]
cmp dword [ebp - 4], ecx
je 0x40927e
cmp dword [ebp - 0x10], 0
jne 0x40927e
movzx edx, byte [ebp - 0x1c]
cmp dword [ebp - 0x18], edx
jbe 0x409238
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x409238
push str.eltstbtywtolnlnhr
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
jmp 0x409259
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x515]
sub eax, dword [ebp - 4]
sub eax, 0x1d4
sub eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
and eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
movzx ecx, word [ebp - 0x18]
add ecx, dword [ebp - 0x20]
and ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x18]
add edx, dword [ebp - 4]
and ecx, edx
or ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add eax, 0x88d
or ecx, eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0xc]
je 0x4092ad
movzx edx, byte [ebp - 0x24]
cmp dword [ebp - 0x18], edx
je 0x4092d6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jbe 0x4092d6
movzx ecx, byte [ebp - 0x24]
add ecx, dword [ebp - 0x20]
movzx edx, byte [ebp - 0x28]
mov eax, 0xfffffa9f
sub eax, edx
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0xc]
add eax, edx
or ecx, eax
or ecx, 0x429
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jne 0x4092e6
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x1c]
je 0x4092f1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
jmp 0x409312
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 0x20]
sub eax, ecx
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
or edx, eax
mov word [ebp - 0x18], dx
mov edx, dword [ebp - 0x2c]
sub edx, 0xd905
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40934e
imul ecx, dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x24]
lea eax, [ecx + edx + 0x17b]
imul ecx, dword [ebp - 0x10], 0
lea edx, [eax + ecx - 0x640]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
add eax, 0xd909
mov dword [ebp - 0x2c], eax
jmp 0x408c0e
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 8]
jb 0x409380
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 8]
jne 0x409380
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
je 0x409380
xor ecx, ecx
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
jmp 0x409392
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
movzx eax, byte [ebp - 0x24]
add edx, eax
or edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x7e3d
mov dword [0x77349c], ecx
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 4]
add eax, dword [ebp - 0x24]
and edx, eax
and edx, dword [ebp - 0x14]
or edx, dword [ebp - 8]
or edx, dword [ebp - 8]
movzx ecx, byte [ebp - 0x24]
or edx, ecx
mov dword [ebp - 0x1c], edx
pop esi
mov esp, ebp
pop ebp
ret