Function at 0x40ddb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4504b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x473018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [eax + 0x40], xmm0
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x40de15
mov dword [ebp - 0x38], 2
jmp 0x40de39
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de20
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x38], eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x40de49
mov dword [ebp - 0x34], 1
jmp 0x40de5f
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de50
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x34], eax
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x40de6f
mov dword [ebp - 0x30], 1
jmp 0x40de81
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de72
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x40de91
mov dword [ebp - 0x2c], 1
jmp 0x40dea3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40de94
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edi + 0x28]
test ecx, ecx
jne 0x40deb3
mov dword [ebp - 0x28], 1
jmp 0x40dec5
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40deb6
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x40ded5
mov dword [ebp - 0x1c], 1
jmp 0x40dee7
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ded8
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 0x3c]
test ecx, ecx
jne 0x40def7
mov dword [ebp - 0x20], 1
jmp 0x40df0f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df00
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x40df1f
mov dword [ebp - 0x24], 2
jmp 0x40df3b
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df22
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x24], eax
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x40df47
lea esi, [ecx + 1]
jmp 0x40df5c
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df50
sub ecx, edx
lea esi, [ecx + 1]
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x40df6a
mov ecx, 2
jmp 0x40df86
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df70
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
mov eax, dword [ebp - 0x18]
lea edi, [ecx + esi]
add edi, dword [ebp - 0x24]
lea esi, [eax + 0x50]
add edi, dword [ebp - 0x20]
add edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x30]
add edi, dword [ebp - 0x34]
add edi, dword [ebp - 0x38]
mov ecx, dword [esi]
mov dword [ebp - 0x38], esi
test ecx, ecx
je 0x40dfe9
cmp dword [ecx], 1
jne 0x40dfba
cmp dword [eax + 0x54], edi
jae 0x40dff3
test ecx, ecx
je 0x40dfe9
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40dfdc
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x38]
mov dword [esi], 0
mov dword [esi + 4], 0
push edi
push 0
mov ecx, esi
call fcn.0040d9c0
mov ecx, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp - 0x3c], 0
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov edx, esi
neg edx
sbb edx, edx
lea eax, [esi + ecx]
and edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x3c]
mov eax, dword [eax + 0xc]
test eax, eax
cmovne edx, eax
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x40e030
lea edi, [edx + 2]
jmp 0x40e04b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e035
sub ecx, edi
sar ecx, 1
lea edi, [ecx*2 + 2]
mov eax, dword [ebp - 0x1c]
sub eax, esi
shr edi, 1
shr eax, 1
cmp edi, eax
mov dword [ebp - 0x30], edi
mov ecx, eax
cmovb ecx, edi
add eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], eax
lea edi, [ecx + ecx]
test edi, edi
je 0x40e0bd
test esi, esi
jne 0x40e07e
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e0b5
test edx, edx
je 0x40e093
cmp eax, edi
jb 0x40e093
push edi
push edx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e0ba
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e071
cmp dword [ebp - 0x34], edi
jae 0x40e0ba
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add edx, 0xc
je 0x40e0d2
mov eax, 1
cmp eax, ecx
sbb eax, eax
and eax, esi
mov dword [edx], eax
cmp ecx, dword [ebp - 0x30]
jae 0x40e0e2
test ecx, ecx
je 0x40e0e2
xor ecx, ecx
mov word [esi + edi - 2], cx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xd]
add esi, edi
mov byte [ebp - 0xd], 0
mov eax, dword [eax + 0x14]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e102
lea edx, [ecx + 1]
jmp 0x40e114
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e105
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e17a
test esi, esi
jne 0x40e13b
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e172
test ecx, ecx
je 0x40e150
cmp eax, edi
jb 0x40e150
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e177
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e12e
cmp dword [ebp - 0x34], edi
jae 0x40e177
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
je 0x40e18f
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e19c
test edi, edi
je 0x40e19c
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xe]
add esi, edi
mov byte [ebp - 0xe], 0
mov eax, dword [eax + 0x18]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e1bc
lea edx, [ecx + 1]
jmp 0x40e1cf
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e1c0
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e235
test esi, esi
jne 0x40e1f6
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e22d
test ecx, ecx
je 0x40e20b
cmp eax, edi
jb 0x40e20b
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e232
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e1e9
cmp dword [ebp - 0x34], edi
jae 0x40e232
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
je 0x40e24a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e257
test edi, edi
je 0x40e257
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xf]
add esi, edi
mov byte [ebp - 0xf], 0
mov eax, dword [eax + 0x1c]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e277
lea edx, [ecx + 1]
jmp 0x40e28f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e280
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e2f5
test esi, esi
jne 0x40e2b6
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e2ed
test ecx, ecx
je 0x40e2cb
cmp eax, edi
jb 0x40e2cb
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e2f2
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e2a9
cmp dword [ebp - 0x34], edi
jae 0x40e2f2
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
je 0x40e30a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e317
test edi, edi
je 0x40e317
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
add esi, edi
mov byte [ebp - 0x10], 0
mov eax, dword [eax + 0x28]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e337
lea edx, [ecx + 1]
jmp 0x40e34f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e340
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e3b5
test esi, esi
jne 0x40e376
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e3ad
test ecx, ecx
je 0x40e38b
cmp eax, edi
jb 0x40e38b
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e3b2
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e369
cmp dword [ebp - 0x34], edi
jae 0x40e3b2
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
je 0x40e3ca
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e3d7
test edi, edi
je 0x40e3d7
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x11]
add esi, edi
mov byte [ebp - 0x11], 0
mov eax, dword [eax + 0x44]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e3f7
lea edx, [ecx + 1]
jmp 0x40e40f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e400
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e475
test esi, esi
jne 0x40e436
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e46d
test ecx, ecx
je 0x40e44b
cmp eax, edi
jb 0x40e44b
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e472
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e429
cmp dword [ebp - 0x34], edi
jae 0x40e472
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x44
je 0x40e48a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e497
test edi, edi
je 0x40e497
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x12]
add esi, edi
mov byte [ebp - 0x12], 0
mov eax, dword [eax + 0x3c]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e4b7
lea edx, [ecx + 1]
jmp 0x40e4cf
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e4c0
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e535
test esi, esi
jne 0x40e4f6
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e52d
test ecx, ecx
je 0x40e50b
cmp eax, edi
jb 0x40e50b
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e532
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e4e9
cmp dword [ebp - 0x34], edi
jae 0x40e532
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
je 0x40e54a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e557
test edi, edi
je 0x40e557
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
add esi, edi
lea edi, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov eax, dword [eax + 0x40]
test eax, eax
cmovne edi, eax
test edi, edi
jne 0x40e577
lea ecx, [edi + 2]
jmp 0x40e596
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e580
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
mov eax, dword [ebp - 0x1c]
sub eax, esi
shr ecx, 1
shr eax, 1
cmp ecx, eax
mov dword [ebp - 0x34], ecx
mov edx, eax
cmovb edx, ecx
add eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x38], eax
lea ecx, [edx + edx]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x40e60f
test esi, esi
jne 0x40e5cc
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e604
test edi, edi
je 0x40e5e1
cmp eax, ecx
jb 0x40e5e1
push ecx
push edi
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e609
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
test edi, edi
je 0x40e5bf
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x38], ecx
jae 0x40e60c
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
add edi, 0x40
je 0x40e624
mov eax, 1
cmp eax, edx
sbb eax, eax
and eax, esi
mov dword [edi], eax
cmp edx, dword [ebp - 0x34]
jae 0x40e634
test edx, edx
je 0x40e634
xor edx, edx
mov word [ecx + esi - 2], dx
mov eax, dword [ebp + 8]
add esi, ecx
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x13], 0
mov eax, dword [eax + 0x30]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x40e654
lea edx, [ecx + 1]
jmp 0x40e666
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e657
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x20], edx
cmp edx, eax
mov dword [ebp - 0x34], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e6cc
test esi, esi
jne 0x40e68d
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e6c4
test ecx, ecx
je 0x40e6a2
cmp eax, edi
jb 0x40e6a2
push edi
push ecx
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e6c9
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x40e680
cmp dword [ebp - 0x34], edi
jae 0x40e6c9
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
je 0x40e6e1
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e6ee
test edi, edi
je 0x40e6ee
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
add esi, edi
lea edi, [ebp - 0x44]
mov dword [ebp - 0x44], 0
mov eax, dword [eax + 0x34]
test eax, eax
cmovne edi, eax
test edi, edi
jne 0x40e70e
lea edx, [edi + 2]
jmp 0x40e729
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e713
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov eax, dword [ebp - 0x1c]
sub eax, esi
shr edx, 1
shr eax, 1
cmp edx, eax
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp + 8], edx
cmovb ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ecx + ecx]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40e7af
test esi, esi
jne 0x40e75d
call fcn.0043c9cc
mov dword [eax], 0x16
jmp 0x40e7a4
test edi, edi
je 0x40e778
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + edx]
cmp ecx, eax
jb 0x40e778
push eax
push edi
push esi
call fcn.00434750
add esp, 0xc
jmp 0x40e7a9
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.00434cd0
add esp, 0xc
test edi, edi
je 0x40e750
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
cmp eax, dword [ebp - 0x38]
jae 0x40e7a9
call fcn.0043c9cc
mov dword [eax], 0x22
call fcn.0043c8ce
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
lea edi, [ecx + ecx]
add eax, 0x34
je 0x40e7ce
mov edi, dword [ebp - 0x18]
mov eax, 1
cmp eax, ecx
sbb eax, eax
and eax, esi
mov dword [edi + 0x34], eax
lea edi, [ecx + ecx]
cmp ecx, edx
jae 0x40e7dd
test ecx, ecx
je 0x40e7dd
xor eax, eax
mov word [edi + esi - 2], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4