Function at 0x40e020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4520a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [eax + 0x40], xmm0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40e085
mov dword [ebp - 0x44], 2
jmp 0x40e0a9
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e090
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x44], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x40e0b9
mov dword [ebp - 0x40], 1
jmp 0x40e0cf
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e0c0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x40], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x40e0df
mov dword [ebp - 0x3c], 1
jmp 0x40e0f1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e0e2
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x40e101
mov dword [ebp - 0x38], 1
jmp 0x40e113
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e104
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + 0x28]
test ecx, ecx
jne 0x40e123
mov dword [ebp - 0x34], 1
jmp 0x40e135
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e126
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x40e145
mov dword [ebp - 0x28], 1
jmp 0x40e157
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e148
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x40e167
mov dword [ebp - 0x2c], 1
jmp 0x40e17f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e170
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x40e18f
mov dword [ebp - 0x30], 2
jmp 0x40e1ab
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e192
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x40e1b7
lea edx, [ecx + 1]
jmp 0x40e1cc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e1c0
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x40e1da
mov ecx, 2
jmp 0x40e1f6
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1e0
sub ecx, esi
sar ecx, 1
lea ecx, [ecx*2 + 2]
mov eax, dword [ebp - 0x24]
lea edi, [ecx + edx]
add edi, dword [ebp - 0x30]
lea esi, [eax + 0x50]
add edi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x34]
add edi, dword [ebp - 0x38]
add edi, dword [ebp - 0x3c]
add edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x44]
mov edx, dword [esi]
mov dword [ebp - 0x44], esi
test edx, edx
je 0x40e22e
cmp dword [edx], 1
jne 0x40e22e
cmp dword [eax + 0x54], edi
jae 0x40e26b
mov ecx, esi
jmp 0x40e234
mov ecx, esi
test edx, edx
je 0x40e261
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40e252
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x44]
mov eax, esi
mov dword [eax], 0
mov dword [eax + 4], 0
push edi
push 0
mov ecx, esi
call fcn.0040dc00
mov ecx, dword [esi + 4]
mov esi, dword [esi]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov edi, esi
neg edi
lea eax, [esi + ecx]
sbb edi, edi
and edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
mov eax, dword [eax + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x40e2a7
lea edx, [ecx + 2]
jmp 0x40e2c6
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2b0
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x44]
mov eax, edi
sub eax, esi
shr edx, 1
shr eax, 1
cmp edx, eax
mov dword [ebp - 0x2c], edx
mov edi, eax
cmovb edi, edx
add eax, eax
mov dword [ebp - 0x30], eax
lea eax, [edi + edi]
test eax, eax
je 0x40e33d
test esi, esi
jne 0x40e2f8
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e335
test ecx, ecx
je 0x40e30e
cmp dword [ebp - 0x30], eax
jb 0x40e30e
push eax
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e33a
push dword [ebp - 0x30]
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e2eb
lea eax, [edi + edi]
cmp dword [ebp - 0x30], eax
jae 0x40e33a
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
je 0x40e352
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e361
test edi, edi
je 0x40e361
xor ecx, ecx
mov word [esi + edi*2 - 2], cx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xd]
lea esi, [esi + edi*2]
mov byte [ebp - 0xd], 0
mov eax, dword [eax + 0x14]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x40e382
lea edx, [ecx + 1]
jmp 0x40e394
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e385
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e3fa
test esi, esi
jne 0x40e3bb
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e3f2
test ecx, ecx
je 0x40e3d0
cmp eax, edi
jb 0x40e3d0
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e3f7
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e3ae
cmp dword [ebp - 0x40], edi
jae 0x40e3f7
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x14
je 0x40e40f
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e41c
test edi, edi
je 0x40e41c
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 - 0x44], ecx
test ecx, ecx
jne 0x40e43c
lea edx, [ecx + 1]
jmp 0x40e44f
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e440
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e4b5
test esi, esi
jne 0x40e476
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e4ad
test ecx, ecx
je 0x40e48b
cmp eax, edi
jb 0x40e48b
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e4b2
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e469
cmp dword [ebp - 0x40], edi
jae 0x40e4b2
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
je 0x40e4ca
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e4d7
test edi, edi
je 0x40e4d7
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 - 0x44], ecx
test ecx, ecx
jne 0x40e4f7
lea edx, [ecx + 1]
jmp 0x40e50f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e500
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e575
test esi, esi
jne 0x40e536
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e56d
test ecx, ecx
je 0x40e54b
cmp eax, edi
jb 0x40e54b
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e572
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e529
cmp dword [ebp - 0x40], edi
jae 0x40e572
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
je 0x40e58a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e597
test edi, edi
je 0x40e597
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 - 0x44], ecx
test ecx, ecx
jne 0x40e5b7
lea edx, [ecx + 1]
jmp 0x40e5cf
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e5c0
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e635
test esi, esi
jne 0x40e5f6
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e62d
test ecx, ecx
je 0x40e60b
cmp eax, edi
jb 0x40e60b
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e632
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e5e9
cmp dword [ebp - 0x40], edi
jae 0x40e632
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
je 0x40e64a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e657
test edi, edi
je 0x40e657
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 - 0x44], ecx
test ecx, ecx
jne 0x40e677
lea edx, [ecx + 1]
jmp 0x40e68f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e680
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e6f5
test esi, esi
jne 0x40e6b6
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e6ed
test ecx, ecx
je 0x40e6cb
cmp eax, edi
jb 0x40e6cb
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e6f2
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e6a9
cmp dword [ebp - 0x40], edi
jae 0x40e6f2
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x44
je 0x40e70a
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e717
test edi, edi
je 0x40e717
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 - 0x44], ecx
test ecx, ecx
jne 0x40e737
lea edx, [ecx + 1]
jmp 0x40e74f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e740
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e7b5
test esi, esi
jne 0x40e776
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e7ad
test ecx, ecx
je 0x40e78b
cmp eax, edi
jb 0x40e78b
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e7b2
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e769
cmp dword [ebp - 0x40], edi
jae 0x40e7b2
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x3c
je 0x40e7ca
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e7d7
test edi, edi
je 0x40e7d7
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
add esi, edi
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + 0x40]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x40e7f9
lea edx, [ecx + 2]
jmp 0x40e816
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e800
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
sub eax, esi
shr eax, 1
shr edx, 1
mov edi, eax
cmp edx, eax
mov dword [ebp - 0x2c], edx
cmovb edi, edx
add eax, eax
mov dword [ebp - 0x30], eax
lea eax, [edi + edi]
test eax, eax
je 0x40e88e
test esi, esi
jne 0x40e849
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e886
test ecx, ecx
je 0x40e85f
cmp dword [ebp - 0x30], eax
jb 0x40e85f
push eax
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e88b
push dword [ebp - 0x30]
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e83c
lea eax, [edi + edi]
cmp dword [ebp - 0x30], eax
jae 0x40e88b
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x40
je 0x40e8a3
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e8b2
test edi, edi
je 0x40e8b2
xor ecx, ecx
mov word [esi + edi*2 - 2], cx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x13]
lea esi, [esi + edi*2]
mov byte [ebp - 0x13], 0
mov eax, dword [eax + 0x30]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x40e8d3
lea edx, [ecx + 1]
jmp 0x40e8e5
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e8d6
sub ecx, edx
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x2c], edx
cmp edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x40e94b
test esi, esi
jne 0x40e90c
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40e943
test ecx, ecx
je 0x40e921
cmp eax, edi
jb 0x40e921
push edi
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40e948
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x40e8ff
cmp dword [ebp - 0x40], edi
jae 0x40e948
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
je 0x40e960
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40e96d
test edi, edi
je 0x40e96d
mov byte [edi + esi - 1], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
add esi, edi
mov word [ebp - 0x20], cx
lea ecx, [ebp - 0x20]
mov eax, dword [eax + 0x34]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x40e98f
lea edx, [ecx + 2]
jmp 0x40e9a8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e992
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x28]
sub ecx, esi
shr edx, 1
shr ecx, 1
cmp edx, ecx
mov dword [ebp - 0x28], ecx
mov edi, ecx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x30]
cmovb edi, edx
lea eax, [edi + edi]
test eax, eax
je 0x40ea2f
test esi, esi
jne 0x40e9d9
call fcn.0043e42c
mov dword [eax], 0x16
jmp 0x40ea27
test ecx, ecx
je 0x40e9f7
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
cmp edx, eax
jb 0x40e9f7
push eax
push ecx
push esi
call fcn.00436180
add esp, 0xc
jmp 0x40ea2c
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.00436700
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x40e9cc
mov edx, dword [ebp - 0x28]
lea eax, [edi + edi]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x40ea2c
call fcn.0043e42c
mov dword [eax], 0x22
call fcn.0043e32e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, 0x34
je 0x40ea44
mov eax, 1
cmp eax, edi
sbb eax, eax
and eax, esi
mov dword [ecx], eax
cmp edi, edx
jae 0x40ea53
test edi, edi
je 0x40ea53
xor eax, eax
mov word [esi + edi*2 - 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