Function at 0x402ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x528c10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x8611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x8a8f67], 0
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [ebp + 0x5c], 0xffffffff
jne 0x403092
xor esi, esi
mov dword [ebp + 0x68], esi
nop dword [eax]
lea ecx, [ebp + 0x60]
call fcn.00401410
call ebx
cdq
push edx
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00528990
push 0
push 0x10
push edx
push eax
call fcn.00528990
inc eax
lea ecx, [ebp - 0x44]
xor eax, 0x10
shl eax, 0xa
or eax, 0x1010101
mov dword [esi + 0x8a9010], eax
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x20
push edx
push eax
call fcn.00528990
mov ecx, dword [ebp + 0x68]
inc eax
xor eax, 0x20
shl eax, 0xb
or eax, 0x1010101
mov dword [ecx + 0x8a8fd0], eax
lea ecx, [ebp - 0x4c]
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], esi
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x40
push edx
push eax
call fcn.00528990
mov esi, dword [ebp + 0x68]
inc eax
xor eax, 0x40
shl eax, 0xc
or eax, 0x1010101
mov dword [esi + 0x8a8f90], eax
add esi, 4
mov dword [ebp + 0x68], esi
cmp esi, 0x40
jl 0x402f10
lea ecx, [ebp + 0x60]
call fcn.00401410
mov edi, dword [ebp + 0x64]
xor esi, esi
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x402fee
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push edi
push dword [ebp + 0x60]
call fcn.00528990
mov byte [esi + 0x8a8f8c], al
inc esi
cmp esi, 4
jb 0x402fe0
lea ecx, [ebp - 0x54]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x40302e
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x54]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f84], al
inc esi
cmp esi, 8
jb 0x403020
lea ecx, [ebp - 0x5c]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x40306e
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x54]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f78], al
inc esi
cmp esi, 0xc
jb 0x403060
mov byte [0x8a8f67], 1
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + edi + 0x5c]
xor esi, esi
nop word [eax + eax]
movzx ecx, byte [esi + 0x8a8f8c]
inc esi
mov al, byte [ecx*4 + 0x8a9012]
xor al, byte [ecx*4 + 0x8a9011]
xor al, byte [ecx*4 + 0x8a9010]
xor dl, al
xor dl, byte [ecx*4 + 0x8a9013]
cmp esi, 4
jb 0x4030b0
xor esi, esi
nop dword [eax]
movzx ecx, byte [esi + 0x8a8f84]
inc esi
mov al, byte [ecx*4 + 0x8a8fd2]
xor al, byte [ecx*4 + 0x8a8fd1]
xor al, byte [ecx*4 + 0x8a8fd0]
xor dl, al
xor dl, byte [ecx*4 + 0x8a8fd3]
cmp esi, 8
jb 0x4030e0
xor esi, esi
nop dword [eax]
movzx ecx, byte [esi + 0x8a8f78]
inc esi
mov al, byte [ecx*4 + 0x8a9012]
xor al, byte [ecx*4 + 0x8a9011]
xor al, byte [ecx*4 + 0x8a9010]
xor dl, al
xor dl, byte [ecx*4 + 0x8a9013]
cmp esi, 0xc
jb 0x403110
mov byte [ebp + edi + 0x5c], dl
inc edi
cmp edi, 4
jb 0x4030a0
cmp byte [0x8a9051], 0
mov dword [ebp + 0x44], 0
jne 0x40316a
mov dword [0x8a9454], 0x401650
mov byte [0x8a9051], 1
cmp byte [0x8a9050], 0
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x54], eax
jne 0x4031a4
mov edx, 0xfeeddccb
mov ecx, 0x8a9058
mov eax, edx
sub edx, 0xffff
xor eax, 0xababdbf3
mov dword [ecx], eax
add ecx, 4
cmp ecx, 0x8a9454
jl 0x403183
mov byte [0x8a9050], 1
mov dword [ebp + 0x68], 0xfae9e8d7
xor edx, edx
mov cl, 0xd7
nop
mov al, byte [ebp + edx + 0x54]
inc edx
xor byte [ebp + 0x69], al
xor cl, al
xor byte [ebp + 0x6a], al
xor byte [ebp + 0x6b], al
not al
movzx eax, al
mov byte [ebp + 0x68], cl
mov ecx, dword [eax*4 + 0x8a9058]
xor ecx, dword [ebp + 0x68]
mov dword [ebp + 0x68], ecx
cmp edx, 4
jb 0x4031b0
mov al, cl
mov dword [ebp + 0x54], ecx
xor al, 4
mov dword [ebp + 0x4c], 4
mov byte [ebp + 0x68], al
mov eax, dword [ebp + 0x68]
mov byte [ebp + 0x4c], 4
mov edx, dword [ebp + 0x4c]
mov ecx, edx
shl ecx, 0x18
xor eax, ecx
mov dword [ebp + 0x58], 4
mov dword [ebp + 0x68], eax
shr eax, 8
xor al, 0xcc
mov byte [ebp + 0x58], 4
mov esi, dword [ebp + 0x58]
mov ecx, esi
mov byte [ebp + 0x69], al
mov eax, dword [ebp + 0x68]
shl ecx, 0x18
xor eax, ecx
shl edx, 0x10
mov ecx, dword [ebp + 0x5c]
mov dword [ebp + 0x68], eax
shr eax, 0x10
mov byte [ebp + 0x6a], al
mov eax, dword [ebp + 0x68]
xor eax, edx
movzx ecx, cl
mov dword [ebp + 0x68], eax
neg ecx
shr eax, 0x18
xor al, 0xae
shl ecx, 7
mov byte [ebp + 0x6b], al
movzx eax, byte [ebp + 0x5f]
imul eax, eax, 0xff
shl esi, 8
xor esi, dword [ebp + 0x68]
and esi, dword [ebp + 0x54]
sub ecx, eax
dec ecx
xor ecx, esi
cmp byte [0x8a9052], 0
mov dword [ebp + 0x44], ecx
jne 0x40327b
mov dword [0x8a9454], 0x401650
mov byte [0x8a9052], 1
cmp byte [0x8a8f67], 0
mov dword [ebp + 0x5c], 0xffffffff
jne 0x403412
xor esi, esi
mov dword [ebp + 0x68], esi
lea ecx, [ebp + 0x60]
call fcn.00401410
call ebx
cdq
push edx
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00528990
push 0
push 0x10
push edx
push eax
call fcn.00528990
inc eax
lea ecx, [ebp - 0x64]
xor eax, 0x10
shl eax, 0xa
or eax, 0x1010101
mov dword [esi + 0x8a9010], eax
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x20
push edx
push eax
call fcn.00528990
mov ecx, dword [ebp + 0x68]
inc eax
xor eax, 0x20
shl eax, 0xb
or eax, 0x1010101
mov dword [ecx + 0x8a8fd0], eax
lea ecx, [ebp - 0x6c]
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], esi
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x40
push edx
push eax
call fcn.00528990
mov esi, dword [ebp + 0x68]
inc eax
xor eax, 0x40
shl eax, 0xc
or eax, 0x1010101
mov dword [esi + 0x8a8f90], eax
add esi, 4
mov dword [ebp + 0x68], esi
cmp esi, 0x40
jl 0x403294
lea ecx, [ebp + 0x60]
call fcn.00401410
mov edi, dword [ebp + 0x64]
xor esi, esi
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x40336e
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push edi
push dword [ebp + 0x60]
call fcn.00528990
mov byte [esi + 0x8a8f8c], al
inc esi
cmp esi, 4
jb 0x403360
lea ecx, [ebp - 0x74]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x4033ae
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x54]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f84], al
inc esi
cmp esi, 8
jb 0x4033a0
lea ecx, [ebp - 0x7c]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x54], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x4033ee
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x54]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f78], al
inc esi
cmp esi, 0xc
jb 0x4033e0
mov byte [0x8a8f67], 1
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + edi + 0x5c]
xor esi, esi
nop word [eax + eax]
movzx ecx, byte [esi + 0x8a8f8c]
inc esi
mov al, byte [ecx*4 + 0x8a9012]
xor al, byte [ecx*4 + 0x8a9011]
xor al, byte [ecx*4 + 0x8a9010]
xor dl, al
xor dl, byte [ecx*4 + 0x8a9013]
cmp esi, 4
jb 0x403430
xor esi, esi
nop dword [eax]
movzx ecx, byte [esi + 0x8a8f84]
inc esi
mov al, byte [ecx*4 + 0x8a8fd2]
xor al, byte [ecx*4 + 0x8a8fd1]
xor al, byte [ecx*4 + 0x8a8fd0]
xor dl, al
xor dl, byte [ecx*4 + 0x8a8fd3]
cmp esi, 8
jb 0x403460
xor esi, esi
nop dword [eax]
movzx ecx, byte [esi + 0x8a8f78]
inc esi
mov al, byte [ecx*4 + 0x8a9012]
xor al, byte [ecx*4 + 0x8a9011]
xor al, byte [ecx*4 + 0x8a9010]
xor dl, al
xor dl, byte [ecx*4 + 0x8a9013]
cmp esi, 0xc
jb 0x403490
mov byte [ebp + edi + 0x5c], dl
inc edi
cmp edi, 4
jb 0x403420
cmp byte [0x8a9050], 0
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x54], eax
jne 0x403503
mov edx, 0xfeeddccb
mov ecx, 0x8a9058
mov eax, edx
sub edx, 0xffff
xor eax, 0xababdbf3
mov dword [ecx], eax
add ecx, 4
cmp ecx, 0x8a9454
jl 0x4034e2
mov byte [0x8a9050], 1
mov dword [ebp + 0x68], 0xfae9e8d7
xor esi, esi
mov dl, 0xd7
nop
mov cl, byte [ebp + esi + 0x54]
inc esi
xor byte [ebp + 0x69], cl
mov al, cl
xor byte [ebp + 0x6a], cl
xor al, dl
xor byte [ebp + 0x6b], cl
not cl
mov byte [ebp + 0x68], al
movzx eax, cl
mov edx, dword [eax*4 + 0x8a9058]
xor edx, dword [ebp + 0x68]
mov dword [ebp + 0x68], edx
cmp esi, 4
jb 0x403510
mov al, dl
mov dword [ebp + 0x54], edx
xor al, 4
mov dword [ebp + 0x4c], 4
mov byte [ebp + 0x68], al
mov eax, dword [ebp + 0x68]
mov byte [ebp + 0x4c], 4
mov edx, dword [ebp + 0x4c]
mov ecx, edx
shl ecx, 0x18
xor eax, ecx
mov dword [ebp + 0x58], 4
mov dword [ebp + 0x68], eax
shr eax, 8
xor al, 0xcc
mov byte [ebp + 0x58], 4
mov edi, dword [ebp + 0x58]
mov ecx, edi
mov byte [ebp + 0x69], al
mov eax, dword [ebp + 0x68]
shl ecx, 0x18
xor eax, ecx
shl edx, 0x10
mov dword [ebp + 0x68], eax
shr eax, 0x10
mov byte [ebp + 0x6a], al
mov eax, dword [ebp + 0x68]
xor eax, edx
shl edi, 8
mov edx, dword [ebp + 0x5c]
mov dword [ebp + 0x68], eax
shr eax, 0x18
xor al, 0xae
mov dword [ebp + 0x40], edx
mov byte [ebp + 0x6b], al
movzx eax, byte [ebp + 0x5f]
xor edi, dword [ebp + 0x68]
and edi, dword [ebp + 0x54]
imul ecx, eax, 0xff
movzx eax, dl
imul eax, eax, 0xffffff80
sub eax, ecx
dec eax
xor edi, eax
mov dword [ebp + 0x64], eax
cmp byte [0x8a9050], 0
mov dword [ebp + 0x44], edi
jne 0x403601
mov edx, 0xfeeddccb
mov ecx, 0x8a9058
nop word [eax + eax]
mov eax, edx
sub edx, 0xffff
xor eax, 0xababdbf3
mov dword [ecx], eax
add ecx, 4
cmp ecx, 0x8a9454
jl 0x4035e0
mov byte [0x8a9050], 1
mov dword [ebp + 0x68], 0xfae9e8d7
xor esi, esi
mov dl, 0xd7
nop dword [eax]
mov cl, byte [ebp + esi + 0x40]
inc esi
xor byte [ebp + 0x69], cl
mov al, cl
xor byte [ebp + 0x6a], cl
xor al, dl
xor byte [ebp + 0x6b], cl
not cl
mov byte [ebp + 0x68], al
movzx eax, cl
mov edx, dword [eax*4 + 0x8a9058]
xor edx, dword [ebp + 0x68]
mov dword [ebp + 0x68], edx
cmp esi, 4
jb 0x403610
movzx eax, byte [ebp + 0x58]
mov dword [ebp + 0x54], 4
mov byte [ebp + 0x54], al
movzx eax, byte [ebp + 0x4c]
mov dword [ebp + 0x3c], 4
mov byte [ebp + 0x3c], al
mov al, dl
mov esi, dword [ebp + 0x3c]
xor al, 4
mov byte [ebp + 0x68], al
mov ecx, esi
mov eax, dword [ebp + 0x68]
shl ecx, 0x18
xor eax, ecx
mov dword [ebp + 0x34], edx
mov ecx, dword [ebp + 0x54]
mov edx, ecx
mov dword [ebp + 0x68], eax
shr eax, 8
xor al, 0xcc
shl edx, 0x18
mov byte [ebp + 0x69], al
mov eax, dword [ebp + 0x68]
xor eax, edx
shl esi, 0x10
mov dword [ebp + 0x68], eax
shr eax, 0x10
mov byte [ebp + 0x6a], al
mov eax, dword [ebp + 0x68]
xor eax, esi
shl ecx, 8
mov dword [ebp + 0x68], eax
shr eax, 0x18
xor al, 0xae
mov byte [ebp + 0x6b], al
xor ecx, dword [ebp + 0x68]
and ecx, dword [ebp + 0x34]
xor ecx, dword [ebp + 0x64]
cmp ecx, edi
je 0x4036d1
mov esi, dword [0x8a9454]
sub esp, 0x28
mov eax, esp
push ecx
push edi
mov ecx, eax
call fcn.00401510
lea ecx, [ebp + 0x40]
call esi
mov eax, dword [ebp + 0x40]
jmp 0x4036d4
mov eax, dword [ebp + 0x5c]
cmp byte [0x8a8f67], 0
mov dword [ebp + 0x58], eax
jne 0x403872
xor esi, esi
mov dword [ebp + 0x4c], esi
nop dword [eax]
lea ecx, [ebp + 0x60]
call fcn.00401410
call ebx
cdq
push edx
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00528990
push 0
push 0x10
push edx
push eax
call fcn.00528990
inc eax
lea ecx, [ebp + 0x30]
xor eax, 0x10
shl eax, 0xa
or eax, 0x1010101
mov dword [esi + 0x8a9010], eax
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x20
push edx
push eax
call fcn.00528990
mov ecx, dword [ebp + 0x4c]
inc eax
xor eax, 0x20
shl eax, 0xb
or eax, 0x1010101
mov dword [ecx + 0x8a8fd0], eax
lea ecx, [ebp + 0x50]
call fcn.00401410
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], esi
call ebx
cdq
push edx
push eax
push esi
push edi
call fcn.00528990
push 0
push 0x40
push edx
push eax
call fcn.00528990
mov esi, dword [ebp + 0x4c]
inc eax
xor eax, 0x40
shl eax, 0xc
or eax, 0x1010101
mov dword [esi + 0x8a8f90], eax
add esi, 4
mov dword [ebp + 0x4c], esi
cmp esi, 0x40
jl 0x4036f0
lea ecx, [ebp + 0x60]
call fcn.00401410
mov edi, dword [ebp + 0x64]
xor esi, esi
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x4037ce
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push edi
push dword [ebp + 0x60]
call fcn.00528990
mov byte [esi + 0x8a8f8c], al
inc esi
cmp esi, 4
jb 0x4037c0
lea ecx, [ebp + 0x38]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x64], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x40380e
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x64]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f84], al
inc esi
cmp esi, 8
jb 0x403800
lea ecx, [ebp + 0x48]
call fcn.00401410
xor esi, esi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x64], eax
nop dword [eax]
call ebx
and eax, 0x8000000f
jns 0x40384e
dec eax
or eax, 0xfffffff0
inc eax
inc al
movsx eax, al
cdq
push edx
push eax
push dword [ebp + 0x64]
push edi
call fcn.00528990
mov byte [esi + 0x8a8f78], al
inc esi
cmp esi, 0xc
jb 0x403840
mov byte [0x8a8f67], 1
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + edi + 0x58]
xor esi, esi
nop word [eax + eax]
movzx edx, byte [esi + 0x8a8f8c]
inc esi
mov cl, byte [edx*4 + 0x8a9010]
xor cl, byte [edx*4 + 0x8a9012]
xor cl, byte [edx*4 + 0x8a9011]
xor al, cl
xor al, byte [edx*4 + 0x8a9013]
cmp esi, 4
jb 0x403890
xor esi, esi
nop dword [eax]
movzx edx, byte [esi + 0x8a8f84]
inc esi
mov cl, byte [edx*4 + 0x8a8fd2]
xor cl, byte [edx*4 + 0x8a8fd1]
xor cl, byte [edx*4 + 0x8a8fd0]
xor al, cl
xor al, byte [edx*4 + 0x8a8fd3]
cmp esi, 8
jb 0x4038c0
xor esi, esi
nop dword [eax]
movzx edx, byte [esi + 0x8a8f78]
inc esi
mov cl, byte [edx*4 + 0x8a9012]
xor cl, byte [edx*4 + 0x8a9011]
xor cl, byte [edx*4 + 0x8a9010]
xor al, cl
xor al, byte [edx*4 + 0x8a9013]
cmp esi, 0xc
jb 0x4038f0
mov byte [ebp + edi + 0x58], al
inc edi
cmp edi, 4
jb 0x403880
push 0x758bd0
lea ecx, [ebp]
call fcn.00406030
push 0x758ba8
lea ecx, [ebp + 0x18]
call fcn.00406030
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmovae eax, dword [ebp + 0x18]
push eax
call esi
cmp dword [ebp + 0x14], 0x10
lea ecx, [ebp]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmovae ecx, dword [ebp]
push ecx
push eax
call edi
call eax
mov ecx, dword [ebp + 0x2c]
mov ebx, eax
cmp ecx, 0x10
jb 0x4039a4
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40399a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403aa1
push ecx
push edx
call fcn.005277e2
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], 0
cmp ecx, 0x10
jb 0x4039ea
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4039e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403aa1
push ecx
push edx
call fcn.005277e2
add esp, 8
push 0x758be4
lea ecx, [ebp - 0x3c]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
call fcn.00406030
push 0x758ba8
lea ecx, [ebp - 0x24]
call fcn.00406030
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call esi
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
push ecx
push eax
call edi
push dword [ebp + 0x58]
push ebx
call eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x10
jb 0x403a69
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403aa1
push ecx
push edx
call fcn.005277e2
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp ecx, 0x10
jb 0x403ab1
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403aa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403aa7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005277e2
add esp, 8
lea ecx, [ebp + 0x40]
call fcn.00401690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x6c]
pop ebp
ret