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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e919
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x441064]
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 - 0xd4], edx
mov edi, ecx
mov dword [ebp - 0xc4], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe0], eax
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0xc5], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xe8], 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.0040d690
xor eax, eax
mov dword [ebp - 0xd0], 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 - 0xd0]
cmovae ecx, dword [ebp - 0xa0]
call fcn.00402460
mov edx, dword [ebp - 0xd0]
test edx, edx
je 0x40bd86
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd70
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00402eb0
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x60], eax
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
xor ecx, ecx
mov dword [ebp - 0xa8], ebx
mov word [eax], cx
cmp dword [ebp - 0x90], ecx
je 0x40be65
cmp dword [ebp - 0x8c], 0x10
lea edi, [ebp - 0xa0]
jb 0x40bdd3
mov edi, dword [ebp - 0xa0]
test edi, edi
je 0x40be5f
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 0x40be59
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410bdf
mov esi, eax
add esp, 4
test esi, esi
je 0x40be59
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.00412cd0
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 0x40be32
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xb8]
call fcn.004018c0
push 2
push esi
call fcn.00410ba9
add esp, 8
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xc4]
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 - 0xd4]
test ecx, ecx
je 0x40bead
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40be91
sub edx, esi
sar edx, 1
je 0x40bead
lea edx, [ebp - 0x88]
call fcn.0040a030
test ebx, ebx
je 0x40beea
cmp dword [ebp - 0x78], 0
je 0x40beea
cmp dword [ebp - 0x74], 8
lea esi, [ebp - 0x88]
lea eax, [ebp - 0xb8]
cmovae esi, dword [ebp - 0x88]
lea ebx, [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040ab90
mov edx, ebx
mov ecx, esi
call fcn.00409430
add esp, 0x18
jmp 0x40bf18
test ebx, ebx
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0xb8]
cmove eax, ecx
lea ecx, [ebp - 0x70]
cmp ecx, eax
je 0x40bf18
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40bf0c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x70]
call fcn.004018c0
lea ecx, [ebp - 0x70]
call fcn.00409df0
test edi, edi
je 0x40bffa
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40bf74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40bf52
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x312
push str.c:_buildagentwork9efead2954b58eab_setupexe_setupexe.cpp
mov dword [ebp - 0xbc], esi
call fcn.0040ebe0
jmp 0x40bfe8
push 0
push 0x40ba90
push 0
push 0x65
push dword [0x4429d4]
mov dword [0x4429d0], edi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov dword [ebp - 0xbc], esi
cmp esi, 0xffffffff
jne 0x40bfd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40bfb3
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x31a
push str.c:_buildagentwork9efead2954b58eab_setupexe_setupexe.cpp
mov dword [ebp - 0xbc], esi
call fcn.0040ebe0
jmp 0x40bfe8
test esi, esi
jle 0x40bfe8
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0xbc], esi
mov dword [0x4429d0], 0
test esi, esi
js 0x40c764
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xd8]
push eax
push str.MANIFEST
push 0
call fcn.0040e240
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov eax, dword [ebp - 0xd8]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.0040e8d0
mov ebx, eax
mov dword [ebp - 0xdc], ebx
test ebx, ebx
jne 0x40c062
mov esi, 0x8007000e
push esi
push 0x3c0
push str.c:_buildagentwork9efead2954b58eab_setupexe_setupexe.cpp
call fcn.0040ebe0
jmp 0x40c905
mov ecx, dword [ebp - 0xd8]
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 - 0xd0], eax
cmp byte [ecx + 2], bl
jbe 0x40c13d
nop dword [eax + eax]
movzx edi, bl
shl edi, 4
add edi, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd4], eax
mov eax, edx
cmp edx, 0xffffffff
jne 0x40c0b7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0xd8]
movzx eax, ax
cmp eax, dword [ebp - 0xd4]
jne 0x40c129
push 0x104
lea eax, [ebp - 0xcc]
push eax
call fcn.0040ddc0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
push 0x104
push dword [ebp - 0xcc]
push 0x43deb4
call fcn.0040e990
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
push 2
push dword [ebp - 0xcc]
push edi
call fcn.0040e130
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0xd0]
cmp bl, byte [ecx + 2]
jb 0x40c090
cmp dword [ebp - 0xcc], 0
jne 0x40c288
xor al, al
mov byte [ebp - 0xbd], al
cmp byte [ecx + 2], al
jbe 0x40c288
mov dword [ebp - 0xd4], 4
movzx edi, al
mov eax, dword [ebp + 8]
shl edi, 4
add edi, dword [ebp - 0xd0]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0xc4], edx
cmp eax, 0xffffffff
jne 0x40c197
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xc4]
movzx eax, ax
mov ebx, eax
and ebx, 0x3ff
cmp word [ebp - 0xd4], bx
jne 0x40c1eb
cmp eax, 0xc04
ja 0x40c1ce
je 0x40c1dc
cmp eax, 0x404
je 0x40c1dc
cmp eax, 0x804
jne 0x40c1c4
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0xc4]
jmp 0x40c200
cmp eax, 0x1004
je 0x40c1bf
cmp eax, 0x1404
jne 0x40c1c4
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0xc4]
jmp 0x40c200
and edx, 0x3ff
mov dword [ebp - 0xc4], edx
xor edx, edx
cmp bx, word [ebp - 0xc4]
sete dl
test edx, edx
je 0x40c271
push 0x104
lea eax, [ebp - 0xcc]
push eax
call fcn.0040ddc0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
push 0x104
push dword [ebp - 0xcc]
push 0x43deb4
call fcn.0040e990
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
push 2
push dword [ebp - 0xcc]
push edi
call fcn.0040e130
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov ecx, dword [ebp - 0xd8]
mov al, byte [ebp - 0xbd]
inc al
mov byte [ebp - 0xbd], al
cmp al, byte [ecx + 2]
jb 0x40c165
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40c29f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xd8]
xor al, al
mov byte [ebp - 0xbd], al
cmp byte [ecx + 1], al
jbe 0x40c75c
mov edx, dword [ebp + 0x10]
movzx eax, al
imul edi, eax, 0xa8
movzx eax, byte [ebp - 0xc5]
imul ebx, eax, 0x468
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp + 0x14]
add edi, 4
mov dword [ebp - 0xc4], edx
add edi, ecx
add ebx, dword [ebp - 0xdc]
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xec], ebx
je 0x40c302
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
jmp 0x40c307
mov eax, 0x43cbe0
push 0
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040e0a0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
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 0x40c764
test dword [edi + 0xa4], 0x100
je 0x40c361
mov dword [ebp - 0xc4], 6
jmp 0x40c491
cmp dword [ebp + 0x14], 7
je 0x40c484
mov eax, dword [edi + 0xa0]
mov ebx, dword [edi + 0x9c]
xor edi, edi
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0xf0], 0x24
push eax
push str.VersionString
push dword [ebp - 0xec]
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x100], 0
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
jne 0x40c434
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040e7b0
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x104]
cmp ebx, ecx
jne 0x40c40d
cmp esi, edx
jne 0x40c40d
mov edi, 2
jmp 0x40c462
mov eax, ebx
xor eax, ecx
test eax, 0xffff0000
jne 0x40c41c
cmp ebx, ecx
ja 0x40c424
cmp ecx, ebx
jne 0x40c42d
cmp esi, edx
jbe 0x40c42b
mov edi, 4
jmp 0x40c462
cmp ecx, ebx
sbb edi, edi
and edi, 5
jmp 0x40c462
cmp esi, 0x645
je 0x40c45d
cmp esi, 0x648
je 0x40c45d
test esi, esi
jle 0x40c459
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0xbc], esi
test esi, esi
jns 0x40c46a
jmp 0x40c470
mov edi, 1
xor esi, esi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc4], edi
test esi, esi
js 0x40c764
mov ebx, dword [ebp - 0xec]
mov edi, dword [ebp - 0xd0]
cmp dword [ebp - 0xc4], 0
je 0x40c73f
inc byte [ebp - 0xc5]
lea edx, [ebp - 0xe4]
mov ecx, edi
call fcn.0040b790
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov edx, dword [ebp - 0xe4]
lea esi, [ebx + 0x4e]
mov dword [ebp - 0xec], 1
mov ecx, 0x104
nop dword [eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x40c4f0
movzx eax, word [edx]
test ax, ax
je 0x40c4f0
mov word [esi], ax
add edx, 2
add esi, 2
sub ecx, 1
jne 0x40c4d0
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 0x40c764
cmp dword [ebp - 0xcc], eax
je 0x40c5d3
test byte [edi + 0xa4], 0x80
je 0x40c5d3
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0xe8]
push eax
call fcn.0040de20
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov eax, dword [edi + 0xa4]
test al, 4
je 0x40c5a9
mov edx, dword [ebp - 0xcc]
lea ecx, [ebp - 0xf8]
push ecx
and eax, 1
mov ecx, edi
push eax
call fcn.0040b690
mov esi, eax
add esp, 8
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40c59f
push eax
call fcn.0040e120
mov dword [ebp - 0xcc], 0
push 0
push dword [ebp - 0xf8]
jmp 0x40c5b1
push 0
push dword [ebp - 0xcc]
call fcn.0040e6c0
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040de20
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov ecx, dword [edi + 0xa4]
test cl, 4
je 0x40c68d
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0xf4]
and ecx, 1
push eax
push ecx
mov ecx, edi
call fcn.0040b590
mov esi, eax
add esp, 8
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
mov edi, dword [ebp - 0xf4]
lea esi, [ebx + 0x256]
mov dword [ebp - 0xec], 0
mov ecx, 0x104
mov edx, edi
nop word [eax + eax]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x40c650
movzx eax, word [edx]
test ax, ax
je 0x40c650
mov word [esi], ax
add edx, 2
add esi, 2
sub ecx, 1
jne 0x40c630
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 0x40c764
mov edx, dword [ebp - 0xd0]
mov dword [ebx + 0x460], 1
mov ecx, dword [edx + 0xa4]
jmp 0x40c699
mov edi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xd0]
test cl, 8
jne 0x40c6b4
test cl, 0x10
mov eax, 3
mov esi, 0x43
cmovne eax, esi
mov dword [ebp - 0xd4], 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 - 0xd4]
mov ecx, ebx
push dword [ebp - 0xc4]
push dword [ebp - 0xe0]
push dword [ebp - 0xe8]
push edi
call fcn.0040b2b0
mov esi, eax
add esp, 0x20
mov dword [ebp - 0xbc], esi
test esi, esi
js 0x40c764
cmp esi, 1
jne 0x40c720
cmp dword [ebx + 0x460], 0
je 0x40c72a
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 0x40c72a
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0xec], 0
je 0x40c73f
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0xbd]
mov ecx, dword [ebp - 0xd8]
inc al
mov byte [ebp - 0xbd], al
cmp al, byte [ecx + 1]
jb 0x40c2b0
test esi, esi
jns 0x40c8ff
cmp esi, 0x80070bc2
je 0x40c8ff
cmp esi, 0x80070bc3
je 0x40c8ff
cmp esi, 0x80070669
je 0x40c8ff
mov al, byte [ebp - 0xc5]
test al, al
je 0x40c8ff
mov edi, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xe0]
add edi, 0x256
movzx ebx, al
mov dword [ebp - 0xd0], ebx
cmp dword [edi + 0x20e], 0
je 0x40c8c0
push 0
push 3
mov dword [ebp - 0xc4], 0
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test esi, esi
je 0x40c7e4
push 1
push esi
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
push 0
push 0x43cbe0
lea eax, [ebp - 0xc4]
push eax
call fcn.0040e0a0
test eax, eax
js 0x40c8b0
lea eax, [ebp - 0xe0]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0xe0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c852
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf0], 4
push eax
push 4
lea eax, [ebp - 0xd4]
push eax
push 0x14
push dword [ebp - 0xe0]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40c863
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.0040de20
test eax, eax
js 0x40c8aa
push 0
push str._REMOVEALL
lea eax, [ebp - 0xc4]
push eax
call fcn.0040de20
test eax, eax
js 0x40c8aa
push dword [ebp - 0xc4]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov ebx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x40c8c0
push eax
call fcn.0040e120
cmp word [edi], 0
je 0x40c8cd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [edi - 0x208], 0
lea eax, [edi - 0x208]
je 0x40c8e4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x468
sub ebx, 1
mov dword [ebp - 0xd0], ebx
jne 0x40c7b1
mov esi, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40c916
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40c920
push ebx
call fcn.0040e900
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x40c930
push eax
call fcn.0040e120
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x40c940
push eax
call fcn.0040e120
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x40c950
push eax
call fcn.0040e120
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x40c960
push eax
call fcn.0040e120
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x40c970
push eax
call fcn.0040e120
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x40c9ad
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cac1
push edx
push ecx
call fcn.00410ba9
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 0x40c9fe
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cac6
push edx
push ecx
call fcn.00410ba9
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 0x40ca53
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cacb
push edx
push ecx
call fcn.00410ba9
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 0x40caa3
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cad0
push edx
push ecx
call fcn.00410ba9
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.00410b68
mov esp, ebp
pop ebp
ret
call fcn.00417ed8
call fcn.00417ed8
call fcn.00417ed8
call fcn.00417ed8
int3