Function at 0x40bf30
Capabilities:
Delete file
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432c09
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x445080]
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 dword [ebp - 0xd0], edx
mov ebx, ecx
mov dword [ebp - 0xc8], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xbe], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.0040d830
xor eax, eax
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
lea edx, [ebp - 0xc4]
cmovae ecx, dword [ebp - 0xa0]
call fcn.004024d0
mov edx, dword [ebp - 0xc4]
test edx, edx
je 0x40c076
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c060
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00402ea0
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
cmovae eax, dword [ebp - 0xb8]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x60], ecx
cmovae eax, dword [ebp - 0x70]
mov word [eax], cx
cmp dword [ebp - 0x90], ecx
je 0x40c15f
cmp dword [ebp - 0x8c], 0x10
lea edi, [ebp - 0xa0]
jb 0x40c0d3
mov edi, dword [ebp - 0xa0]
test edi, edi
je 0x40c15f
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x40c159
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ba9
mov esi, eax
add esp, 4
test esi, esi
je 0x40c159
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.00414fa0
add esp, 0xc
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c132
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xb8]
call fcn.00401930
push 2
push esi
call fcn.00412b73
add esp, 8
mov ebx, dword [ebp - 0xc8]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
cmovae eax, dword [ebp - 0x88]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x40c1ac
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c190
sub edx, esi
sar edx, 1
je 0x40c1ac
lea edx, [ebp - 0x88]
call fcn.0040a040
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x40c1ef
cmp dword [ebp - 0x78], 0
je 0x40c1ef
cmp dword [ebp - 0x74], 8
lea esi, [ebp - 0x88]
lea eax, [ebp - 0xb8]
cmovae esi, dword [ebp - 0x88]
lea edi, [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040ae80
mov edx, edi
mov ecx, esi
call fcn.00409460
add esp, 0x18
jmp 0x40c21d
test ecx, ecx
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x88]
cmove eax, edx
lea ecx, [ebp - 0x70]
cmp ecx, eax
je 0x40c21d
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40c211
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00401930
lea ecx, [ebp - 0x70]
call fcn.00409e00
test ebx, ebx
je 0x40c2ff
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40c279
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40c257
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x312
push str.c:_buildagentwork_a8a3f5ed687aa1d8projects_setupexe_setupexe.cpp
mov dword [ebp - 0xbc], esi
call fcn.0040fa20
jmp 0x40c2ed
push 0
push 0x40bd80
push 0
push 0x65
push dword [0x446c1c]
mov dword [0x446c18], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov dword [ebp - 0xbc], esi
cmp esi, 0xffffffff
jne 0x40c2da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40c2b8
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x31a
push str.c:_buildagentwork_a8a3f5ed687aa1d8projects_setupexe_setupexe.cpp
mov dword [ebp - 0xbc], esi
call fcn.0040fa20
jmp 0x40c2ed
test esi, esi
jle 0x40c2ed
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0xbc], esi
mov dword [0x446c18], 0
test esi, esi
js 0x40ca64
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xd4]
push eax
push str.MANIFEST
push 0
call fcn.0040e9d0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov eax, dword [ebp - 0xd4]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.0040f6e0
mov ebx, eax
mov dword [ebp - 0xd8], ebx
test ebx, ebx
jne 0x40c367
mov esi, 0x8007000e
push esi
push 0x3c0
push str.c:_buildagentwork_a8a3f5ed687aa1d8projects_setupexe_setupexe.cpp
call fcn.0040fa20
jmp 0x40cc05
mov ecx, dword [ebp - 0xd4]
xor bl, bl
mov edx, dword [ebp + 8]
movzx eax, byte [ecx + 1]
imul eax, eax, 0xa8
add eax, 4
add eax, ecx
mov dword [ebp - 0xc8], eax
cmp byte [ecx + 2], bl
jbe 0x40c43d
movzx edi, bl
shl edi, 4
add edi, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, edx
cmp edx, 0xffffffff
jne 0x40c3b7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0xd4]
movzx eax, ax
cmp eax, dword [ebp - 0xd0]
jne 0x40c429
push 0x104
lea eax, [ebp - 0xcc]
push eax
call fcn.0040dfc0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
push 0x104
push dword [ebp - 0xcc]
push 0x441290
call fcn.0040f7a0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
push 2
push dword [ebp - 0xcc]
push edi
call fcn.0040e8c0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0xc8]
cmp bl, byte [ecx + 2]
jb 0x40c390
cmp dword [ebp - 0xcc], 0
jne 0x40c588
xor al, al
mov byte [ebp - 0xbd], al
cmp byte [ecx + 2], al
jbe 0x40c588
mov dword [ebp - 0xd0], 4
movzx edi, al
mov eax, dword [ebp + 8]
shl edi, 4
add edi, dword [ebp - 0xc8]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0xc4], edx
cmp eax, 0xffffffff
jne 0x40c497
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xc4]
movzx eax, ax
mov ebx, eax
and ebx, 0x3ff
cmp word [ebp - 0xd0], bx
jne 0x40c4eb
cmp eax, 0xc04
ja 0x40c4ce
je 0x40c4dc
cmp eax, 0x404
je 0x40c4dc
cmp eax, 0x804
jne 0x40c4c4
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0xc4]
jmp 0x40c500
cmp eax, 0x1004
je 0x40c4bf
cmp eax, 0x1404
jne 0x40c4c4
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0xc4]
jmp 0x40c500
and edx, 0x3ff
mov dword [ebp - 0xc4], edx
xor edx, edx
cmp bx, word [ebp - 0xc4]
sete dl
test edx, edx
je 0x40c571
push 0x104
lea eax, [ebp - 0xcc]
push eax
call fcn.0040dfc0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
push 0x104
push dword [ebp - 0xcc]
push 0x441290
call fcn.0040f7a0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
push 2
push dword [ebp - 0xcc]
push edi
call fcn.0040e8c0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov ecx, dword [ebp - 0xd4]
mov al, byte [ebp - 0xbd]
inc al
mov byte [ebp - 0xbd], al
cmp al, byte [ecx + 2]
jb 0x40c465
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x40c59f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xd4]
xor al, al
mov byte [ebp - 0xbd], al
cmp byte [ecx + 1], al
jbe 0x40ca5c
mov edx, dword [ebp + 0x10]
movzx eax, al
imul edi, eax, 0xa8
movzx eax, byte [ebp - 0xbe]
imul ebx, eax, 0x468
mov dword [ebp - 0xd0], edx
mov edx, dword [ebp + 0x14]
add edi, 4
mov dword [ebp - 0xc4], edx
add edi, ecx
add ebx, dword [ebp - 0xd8]
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xe8], ebx
je 0x40c602
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
jmp 0x40c607
mov eax, 0x43fe7c
push 0
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040e3d0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
push 0x27
push ebx
lea eax, [edi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
test dword [edi + 0xa4], 0x100
je 0x40c661
mov dword [ebp - 0xc4], 6
jmp 0x40c795
cmp dword [ebp + 0x14], 7
je 0x40c788
mov eax, dword [edi + 0xa0]
mov ebx, dword [edi + 0x9c]
xor edi, edi
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0xec], 0x24
push eax
push str.VersionString
push dword [ebp - 0xe8]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xfc], 0
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
jne 0x40c738
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040f4a0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xfc]
mov esi, dword [ebp - 0x100]
cmp ebx, ecx
jne 0x40c711
cmp esi, edx
jne 0x40c711
mov edi, 2
jmp 0x40c766
mov eax, ebx
xor eax, ecx
test eax, 0xffff0000
jne 0x40c720
cmp ebx, ecx
ja 0x40c728
cmp ecx, ebx
jne 0x40c731
cmp esi, edx
jbe 0x40c72f
mov edi, 4
jmp 0x40c766
cmp ecx, ebx
sbb edi, edi
and edi, 5
jmp 0x40c766
cmp esi, 0x645
je 0x40c761
cmp esi, 0x648
je 0x40c761
test esi, esi
jle 0x40c75d
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0xbc], esi
test esi, esi
jns 0x40c76e
jmp 0x40c774
mov edi, 1
xor esi, esi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc4], edi
test esi, esi
js 0x40ca64
mov ebx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0xc8]
cmp dword [ebp - 0xc4], 0
je 0x40ca3f
inc byte [ebp - 0xbe]
lea edx, [ebp - 0xe0]
mov ecx, edi
call fcn.0040ba80
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov edx, dword [ebp - 0xe0]
lea esi, [ebx + 0x4e]
mov dword [ebp - 0xe8], 1
mov ecx, 0x104
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x40c7f0
movzx eax, word [edx]
test ax, ax
je 0x40c7f0
mov word [esi], ax
add edx, 2
add esi, 2
sub ecx, 1
jne 0x40c7d0
lea eax, [esi - 2]
test ecx, ecx
cmovne eax, esi
xor edx, edx
mov esi, 0x8007007a
mov word [eax], dx
xor eax, eax
test ecx, ecx
cmovne esi, eax
mov dword [ebp - 0xbc], esi
je 0x40ca64
cmp dword [ebp - 0xcc], eax
je 0x40c8d3
test byte [edi + 0xa4], 0x80
je 0x40c8d3
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0xe4]
push eax
call fcn.0040e020
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov eax, dword [edi + 0xa4]
test al, 4
je 0x40c8a9
mov edx, dword [ebp - 0xcc]
lea ecx, [ebp - 0xf4]
push ecx
and eax, 1
mov ecx, edi
push eax
call fcn.0040b980
mov esi, eax
add esp, 8
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40c89f
push eax
call fcn.0040e720
mov dword [ebp - 0xcc], 0
push 0
push dword [ebp - 0xf4]
jmp 0x40c8b1
push 0
push dword [ebp - 0xcc]
call fcn.0040ee50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040e020
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov ecx, dword [edi + 0xa4]
test cl, 4
je 0x40c98d
mov edx, dword [ebp - 0xe0]
lea eax, [ebp - 0xf0]
and ecx, 1
push eax
push ecx
mov ecx, edi
call fcn.0040b880
mov esi, eax
add esp, 8
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
mov edi, dword [ebp - 0xf0]
lea esi, [ebx + 0x256]
mov dword [ebp - 0xe8], 0
mov ecx, 0x104
mov edx, edi
nop word [eax + eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x40c950
movzx eax, word [edx]
test ax, ax
je 0x40c950
mov word [esi], ax
add edx, 2
add esi, 2
sub ecx, 1
jne 0x40c930
lea eax, [esi - 2]
test ecx, ecx
cmovne eax, esi
xor edx, edx
mov esi, 0x8007007a
mov word [eax], dx
xor eax, eax
test ecx, ecx
cmovne esi, eax
mov dword [ebp - 0xbc], esi
je 0x40ca64
mov edx, dword [ebp - 0xc8]
mov dword [ebx + 0x460], 1
mov ecx, dword [edx + 0xa4]
jmp 0x40c999
mov edi, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xc8]
test cl, 8
jne 0x40c9b4
test cl, 0x10
mov eax, 3
mov esi, 0x43
cmovne eax, esi
mov dword [ebp - 0xd0], eax
mov eax, ecx
add edx, 0xc
and eax, 1
push eax
mov eax, ecx
and ecx, 0x10
and eax, 0x200
push eax
push ecx
push dword [ebp - 0xd0]
mov ecx, ebx
push dword [ebp - 0xc4]
push dword [ebp - 0xdc]
push dword [ebp - 0xe4]
push edi
call fcn.0040b5a0
mov esi, eax
add esp, 0x20
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40ca64
cmp esi, 1
jne 0x40ca20
cmp dword [ebx + 0x460], 0
je 0x40ca2a
lea edi, [ebx + 0x256]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [edi], ax
mov dword [ebx + 0x460], eax
jmp 0x40ca2a
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0xe8], 0
je 0x40ca3f
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0xbd]
mov ecx, dword [ebp - 0xd4]
inc al
mov byte [ebp - 0xbd], al
cmp al, byte [ecx + 1]
jb 0x40c5b0
test esi, esi
jns 0x40cbff
cmp esi, 0x80070bc2
je 0x40cbff
cmp esi, 0x80070bc3
je 0x40cbff
cmp esi, 0x80070669
je 0x40cbff
mov al, byte [ebp - 0xbe]
test al, al
je 0x40cbff
mov edi, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xdc]
add edi, 0x256
movzx ebx, al
mov dword [ebp - 0xc8], ebx
cmp dword [edi + 0x20e], 0
je 0x40cbc0
push 0
push 3
mov dword [ebp - 0xc4], 0
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test esi, esi
je 0x40cae4
push 1
push esi
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
push 0
push 0x43fe7c
lea eax, [ebp - 0xc4]
push eax
call fcn.0040e3d0
test eax, eax
js 0x40cbb0
lea eax, [ebp - 0xdc]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0xdc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cb52
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 4
push eax
push 4
lea eax, [ebp - 0xd0]
push eax
push 0x14
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x40cb63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov ecx, str._IS_ELEVATEDno
push 0
mov eax, str._IS_ELEVATEDyes
cmove eax, ecx
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040e020
test eax, eax
js 0x40cbaa
push 0
push str._REMOVEALL
lea eax, [ebp - 0xc4]
push eax
call fcn.0040e020
test eax, eax
js 0x40cbaa
push dword [ebp - 0xc4]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov ebx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x40cbc0
push eax
call fcn.0040e720
cmp word [edi], 0
je 0x40cbcd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [edi - 0x208], 0
lea eax, [edi - 0x208]
je 0x40cbe4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x468
sub ebx, 1
mov dword [ebp - 0xc8], ebx
jne 0x40cab1
mov esi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40cc16
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40cc20
push ebx
call fcn.0040f710
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40cc30
push eax
call fcn.0040e720
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40cc40
push eax
call fcn.0040e720
mov eax, dword [ebp - 0xf0]
test eax, eax
je 0x40cc50
push eax
call fcn.0040e720
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x40cc60
push eax
call fcn.0040e720
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x40cc70
push eax
call fcn.0040e720
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x40ccad
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cca3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdc1
push edx
push ecx
call fcn.00412b73
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 0x10
jb 0x40ccfe
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ccf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdc6
push edx
push ecx
call fcn.00412b73
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp edx, 8
jb 0x40cd53
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdcb
push edx
push ecx
call fcn.00412b73
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40cda3
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdd0
push edx
push ecx
call fcn.00412b73
add esp, 8
mov eax, esi
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.00412b32
mov esp, ebp
pop ebp
ret
call fcn.0041b58d
call fcn.0041b58d
call fcn.0041b58d
call fcn.0041b58d
int3