Function at 0x40cc20
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b4449
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4dde40]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dde40]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
mov eax, dword [esp + 0x290]
xor esi, esi
mov dword [esp + 0x288], esi
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0xcc], esi
call fcn.00406f20
mov ecx, dword [esp + 0x29c]
mov dword [esp + 0x288], esi
mov edi, 1
push ecx
lea esi, [esp + 0x1f4]
mov dword [esp + 0xcc], edi
call fcn.0040bba0
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0x298]
push edx
lea esi, [esp + 0x1bc]
mov dword [esp + 0x28c], edi
call fcn.0040bba0
add esp, 4
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x184]
mov byte [esp + 0x28c], 2
call fcn.004159d0
add esp, 4
push ebx
push eax
lea edi, [esp + 0x230]
mov byte [esp + 0x290], 3
call fcn.00415a80
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x26c]
mov byte [esp + 0x294], 4
call fcn.004159d0
add esp, 0xc
mov esi, 0x10
cmp dword [esp + 0x240], esi
jb 0x40cd3f
mov eax, dword [esp + 0x22c]
push eax
call fcn.0043815d
add esp, 4
mov ebx, 0xf
xor edi, edi
mov dword [esp + 0x240], ebx
mov dword [esp + 0x23c], edi
mov byte [esp + 0x22c], 0
cmp dword [esp + 0x198], esi
jb 0x40cd75
mov ecx, dword [esp + 0x184]
push ecx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x198], ebx
mov dword [esp + 0x194], edi
mov byte [esp + 0x184], 0
cmp dword [esp + 0x1d0], esi
jb 0x40cda4
mov edx, dword [esp + 0x1bc]
push edx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x1d0], ebx
mov dword [esp + 0x1cc], edi
mov byte [esp + 0x1bc], 0
mov byte [esp + 0x288], 9
cmp dword [esp + 0x208], esi
jb 0x40cddb
mov eax, dword [esp + 0x1f4]
push eax
call fcn.0043815d
add esp, 4
mov dword [esp + 0x208], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x58]
add ebx, 0x40
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0xec]
mov dword [esp + 0x208], edi
mov edi, dword [ebx]
push eax
mov esi, ebx
mov byte [esp + 0x1fc], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ecx
call fcn.0040e370
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x40ce28
cmp eax, edi
je 0x40ce2d
call fcn.0047c11f
mov ecx, dword [esp + 0x34]
cmp dword [esi + 4], ecx
je 0x40cec0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0xc], eax
jbe 0x40ce4b
call fcn.0047c11f
mov edx, dword [ebp]
mov dword [esp + 0xa8], edx
lea ecx, [esp + 0x260]
mov edx, ebx
call fcn.004060a0
mov esi, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
cmp dword [esi + 0xc], eax
jbe 0x40ce76
call fcn.0047c11f
mov eax, dword [esi]
lea ecx, [esp + 0x260]
mov edx, ebx
mov dword [esp + 0x30], eax
call fcn.004060a0
mov esi, eax
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x40ce99
call fcn.0047c11f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov esi, dword [esi]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0x30]
push edi
push esi
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00416dd0
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
mov eax, ecx
neg eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x40da7c
mov edx, dword [esp + 0x29c]
mov eax, dword [esp + 0x20]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x298]
lea esi, [eax + ecx]
add edx, eax
sub ecx, eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], edx
mov dword [esp + 0x28], ecx
jmp 0x40cf20
mov eax, dword [esp + 0xd4]
push eax
lea esi, [esp + 0x1d8]
call fcn.0040bba0
add esp, 4
mov ebp, eax
mov edx, dword [esp + 0x298]
mov ecx, dword [esp + 0x1c]
add ecx, edx
push ecx
lea esi, [esp + 0x168]
mov byte [esp + 0x28c], 0xa
call fcn.0040bba0
add esp, 4
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x1a0]
mov byte [esp + 0x28c], 0xb
call fcn.004159d0
add esp, 4
push ebp
push eax
lea edi, [esp + 0x214]
mov byte [esp + 0x290], 0xc
call fcn.00415a80
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x250]
mov byte [esp + 0x294], 0xd
call fcn.004159d0
add esp, 0xc
cmp dword [esp + 0x224], 0x10
jb 0x40cfc8
mov eax, dword [esp + 0x210]
push eax
call fcn.0043815d
add esp, 4
mov esi, 0xf
xor edi, edi
mov dword [esp + 0x224], esi
mov dword [esp + 0x220], edi
mov byte [esp + 0x210], 0
mov ebp, 0x10
cmp dword [esp + 0x1b4], ebp
jb 0x40d003
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x1b4], esi
mov dword [esp + 0x1b0], edi
mov byte [esp + 0x1a0], 0
cmp dword [esp + 0x17c], ebp
jb 0x40d032
mov edx, dword [esp + 0x168]
push edx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x17c], esi
mov dword [esp + 0x178], edi
mov byte [esp + 0x168], 0
mov byte [esp + 0x288], 0x12
cmp dword [esp + 0x1ec], ebp
jb 0x40d069
mov eax, dword [esp + 0x1d8]
push eax
call fcn.0043815d
add esp, 4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0x244]
mov eax, ebx
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], edi
mov byte [esp + 0x1d8], 0
mov dword [esp + 0xc0], edx
call fcn.00409420
mov esi, eax
mov dword [esp + 0x10c], esi
cmp ebx, edi
jne 0x40d0b2
call fcn.0047c11f
mov eax, dword [ebx]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x108], eax
test eax, eax
je 0x40d0c6
cmp eax, eax
je 0x40d0cb
call fcn.0047c11f
cmp esi, edi
je 0x40d124
mov edi, dword [esi + 0x20]
cmp dword [esi + 0x24], ebp
jb 0x40d0dc
mov ecx, dword [esi + 0x10]
jmp 0x40d0df
lea ecx, [esi + 0x10]
mov esi, dword [esp + 0x258]
mov eax, esi
cmp esi, edi
jb 0x40d0ee
mov eax, edi
mov edx, dword [esp + 0x248]
cmp dword [esp + 0x25c], ebp
jae 0x40d105
lea edx, [esp + 0x248]
call fcn.00401c00
test eax, eax
jne 0x40d119
cmp esi, edi
jb 0x40d124
cmp esi, edi
setne al
test eax, eax
jl 0x40d124
lea eax, [esp + 0x108]
jmp 0x40d13e
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ecx
lea eax, [esp + 0xf0]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
je 0x40d150
cmp ecx, dword [esp + 0xc0]
je 0x40d155
call fcn.0047c11f
cmp esi, dword [esp + 0xc4]
je 0x40d1eb
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], eax
jbe 0x40d177
call fcn.0047c11f
mov edx, dword [esi]
mov dword [esp + 0x144], edx
lea ecx, [esp + 0x244]
mov edx, ebx
call fcn.004060a0
mov esi, eax
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40d19d
call fcn.0047c11f
mov eax, dword [esi]
lea ecx, [esp + 0x244]
mov edx, ebx
mov dword [esp + 0x13c], eax
call fcn.004060a0
mov esi, eax
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x40d1c3
call fcn.0047c11f
mov ecx, dword [esp + 0x13c]
mov esi, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x144]
push ebp
push ecx
mov ecx, dword [esp + 0x30]
push edi
push esi
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00416dd0
mov eax, dword [esp + 0x29c]
mov edx, dword [esp + 0x1c]
add edx, eax
push edx
lea esi, [esp + 0x11c]
call fcn.0040bba0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0xb8]
push ecx
lea esi, [esp + 0x3c]
mov byte [esp + 0x28c], 0x13
call fcn.0040bba0
add esp, 4
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x58]
mov byte [esp + 0x28c], 0x14
call fcn.004159d0
add esp, 4
push ebp
push eax
lea edi, [esp + 0x78]
mov byte [esp + 0x290], 0x15
call fcn.00415a80
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x98]
mov byte [esp + 0x294], 0x16
call fcn.004159d0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x250]
mov byte [esp + 0x294], 0x17
call fcn.004075d0
cmp dword [esp + 0xa4], 0x10
jb 0x40d2a3
mov edx, dword [esp + 0x90]
push edx
call fcn.0043815d
add esp, 4
xor edi, edi
mov ebp, 0x10
mov esi, 0xf
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
cmp dword [esp + 0x88], ebp
jb 0x40d2db
mov eax, dword [esp + 0x74]
push eax
call fcn.0043815d
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
cmp dword [esp + 0x6c], ebp
jb 0x40d301
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
cmp dword [esp + 0x50], ebp
jb 0x40d321
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043815d
add esp, 4
mov byte [esp + 0x288], 0x12
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x130], ebp
jb 0x40d34f
mov eax, dword [esp + 0x11c]
push eax
call fcn.0043815d
add esp, 4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
mov dword [esp + 0xd0], ecx
lea ecx, [esp + 0x244]
mov eax, ebx
mov dword [esp + 0xcc], edx
call fcn.00409420
mov esi, eax
mov dword [esp + 0xfc], esi
cmp ebx, edi
jne 0x40d382
call fcn.0047c11f
mov eax, dword [ebx]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0xf8], eax
test eax, eax
je 0x40d396
cmp eax, eax
je 0x40d39b
call fcn.0047c11f
cmp esi, edi
je 0x40d3f4
mov edi, dword [esi + 0x20]
cmp dword [esi + 0x24], ebp
jb 0x40d3ac
mov ecx, dword [esi + 0x10]
jmp 0x40d3af
lea ecx, [esi + 0x10]
mov esi, dword [esp + 0x258]
mov eax, esi
cmp esi, edi
jb 0x40d3be
mov eax, edi
mov edx, dword [esp + 0x248]
cmp dword [esp + 0x25c], ebp
jae 0x40d3d5
lea edx, [esp + 0x248]
call fcn.00401c00
test eax, eax
jne 0x40d3e9
cmp esi, edi
jb 0x40d3f4
cmp esi, edi
setne al
test eax, eax
jl 0x40d3f4
lea eax, [esp + 0xf8]
jmp 0x40d40e
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], ecx
lea eax, [esp + 0xe0]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
je 0x40d420
cmp ecx, dword [esp + 0xcc]
je 0x40d425
call fcn.0047c11f
cmp esi, dword [esp + 0xd0]
je 0x40d4bb
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], eax
jbe 0x40d447
call fcn.0047c11f
mov edx, dword [esi]
mov dword [esp + 0x134], edx
lea ecx, [esp + 0x244]
mov edx, ebx
call fcn.004060a0
mov esi, eax
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40d46d
call fcn.0047c11f
mov eax, dword [esi]
lea ecx, [esp + 0x244]
mov edx, ebx
mov dword [esp + 0x154], eax
call fcn.004060a0
mov esi, eax
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x40d493
call fcn.0047c11f
mov ecx, dword [esp + 0x154]
mov esi, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x134]
push ebp
push ecx
mov ecx, dword [esp + 0x30]
push edi
push esi
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00416dd0
mov edx, dword [esp + 0xbc]
push edx
lea esi, [esp + 0x11c]
call fcn.0040bba0
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x298]
sub eax, dword [esp + 0x1c]
lea esi, [esp + 0x8c]
push eax
mov byte [esp + 0x28c], 0x18
call fcn.0040bba0
add esp, 4
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x74]
mov byte [esp + 0x28c], 0x19
call fcn.004159d0
add esp, 4
push ebp
push eax
lea edi, [esp + 0x5c]
mov byte [esp + 0x290], 0x1a
call fcn.00415a80
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x44]
mov byte [esp + 0x294], 0x1b
call fcn.004159d0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x250]
mov byte [esp + 0x294], 0x1c
call fcn.004075d0
cmp dword [esp + 0x50], 0x10
jb 0x40d56b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043815d
add esp, 4
xor edi, edi
mov ebp, 0x10
mov esi, 0xf
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x6c], ebp
jb 0x40d597
mov edx, dword [esp + 0x58]
push edx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], ebp
jb 0x40d5ba
mov eax, dword [esp + 0x74]
push eax
call fcn.0043815d
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
cmp dword [esp + 0xa4], ebp
jb 0x40d5e6
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0043815d
add esp, 4
mov byte [esp + 0x288], 0x12
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
cmp dword [esp + 0x130], ebp
jb 0x40d61d
mov edx, dword [esp + 0x11c]
push edx
call fcn.0043815d
add esp, 4
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xd8], ecx
lea ecx, [esp + 0x244]
mov eax, ebx
call fcn.00409420
mov esi, eax
mov dword [esp + 0x104], esi
cmp ebx, edi
jne 0x40d650
call fcn.0047c11f
mov eax, dword [ebx]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x100], eax
test eax, eax
je 0x40d664
cmp eax, eax
je 0x40d669
call fcn.0047c11f
cmp esi, edi
je 0x40d6c2
mov edi, dword [esi + 0x20]
cmp dword [esi + 0x24], ebp
jb 0x40d67a
mov ecx, dword [esi + 0x10]
jmp 0x40d67d
lea ecx, [esi + 0x10]
mov esi, dword [esp + 0x258]
mov eax, esi
cmp esi, edi
jb 0x40d68c
mov eax, edi
mov edx, dword [esp + 0x248]
cmp dword [esp + 0x25c], ebp
jae 0x40d6a3
lea edx, [esp + 0x248]
call fcn.00401c00
test eax, eax
jne 0x40d6b7
cmp esi, edi
jb 0x40d6c2
cmp esi, edi
setne al
test eax, eax
jl 0x40d6c2
lea eax, [esp + 0x100]
jmp 0x40d6dc
mov eax, dword [ebx]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], edx
lea eax, [esp + 0x110]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
je 0x40d6ee
cmp ecx, dword [esp + 0xd8]
je 0x40d6f3
call fcn.0047c11f
cmp esi, dword [esp + 0xdc]
je 0x40d789
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], eax
jbe 0x40d715
call fcn.0047c11f
mov ecx, dword [esi]
mov dword [esp + 0x15c], ecx
lea ecx, [esp + 0x244]
mov edx, ebx
call fcn.004060a0
mov esi, eax
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40d73b
call fcn.0047c11f
mov edx, dword [esi]
mov dword [esp + 0x14c], edx
lea ecx, [esp + 0x244]
mov edx, ebx
call fcn.004060a0
mov esi, eax
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x40d761
call fcn.0047c11f
mov eax, dword [esp + 0x14c]
mov esi, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x15c]
push ebp
push eax
mov eax, dword [esp + 0x30]
push edi
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.00416dd0
mov ecx, dword [esp + 0x29c]
sub ecx, dword [esp + 0x1c]
lea esi, [esp + 0x118]
push ecx
call fcn.0040bba0
add esp, 4
mov ebp, eax
mov byte [esp + 0x288], 0x1d
mov edx, dword [esp + 0x28]
push edx
lea esi, [esp + 0x90]
call fcn.0040bba0
add esp, 4
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x74]
mov byte [esp + 0x28c], 0x1e
call fcn.004159d0
add esp, 4
push ebp
push eax
lea edi, [esp + 0x5c]
mov byte [esp + 0x290], 0x1f
call fcn.00415a80
push eax
mov edi, 0x4c6108
lea esi, [esp + 0x44]
mov byte [esp + 0x294], 0x20
call fcn.004159d0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x250]
mov byte [esp + 0x294], 0x21
call fcn.004075d0
cmp dword [esp + 0x50], 0x10
jb 0x40d836
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043815d
add esp, 4
xor ebp, ebp
mov edi, 0x10
mov esi, 0xf
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x6c], edi
jb 0x40d862
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], edi
jb 0x40d885
mov edx, dword [esp + 0x74]
push edx
call fcn.0043815d
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
cmp dword [esp + 0xa4], edi
jb 0x40d8b1
mov eax, dword [esp + 0x90]
push eax
call fcn.0043815d
add esp, 4
mov byte [esp + 0x288], 0x12
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
cmp dword [esp + 0x130], edi
jb 0x40d8e8
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043815d
add esp, 4
mov eax, dword [ebx]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0x244]
mov eax, ebx
mov dword [esp + 0xb4], edx
call fcn.00409420
mov esi, eax
mov dword [esp + 0xac], esi
cmp ebx, ebp
jne 0x40d91b
call fcn.0047c11f
mov eax, dword [ebx]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0xa8], eax
cmp eax, ebp
je 0x40d92f
cmp eax, eax
je 0x40d934
call fcn.0047c11f
cmp esi, edi
je 0x40d991
cmp dword [esi + 0x24], 0x10
mov edi, dword [esi + 0x20]
jb 0x40d946
mov ecx, dword [esi + 0x10]
jmp 0x40d949
lea ecx, [esi + 0x10]
mov esi, dword [esp + 0x258]
mov eax, esi
cmp esi, edi
jb 0x40d958
mov eax, edi
cmp dword [esp + 0x25c], 0x10
mov edx, dword [esp + 0x248]
jae 0x40d970
lea edx, [esp + 0x248]
call fcn.00401c00
cmp eax, ebp
jne 0x40d986
cmp esi, edi
jb 0x40d991
xor eax, eax
cmp esi, edi
setne al
cmp eax, ebp
jl 0x40d991
lea eax, [esp + 0xa8]
jmp 0x40d9a2
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
lea eax, [esp + 0x30]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
cmp ecx, ebp
je 0x40d9b4
cmp ecx, dword [esp + 0xb0]
je 0x40d9b9
call fcn.0047c11f
cmp esi, dword [esp + 0xb4]
je 0x40da47
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], eax
jbe 0x40d9db
call fcn.0047c11f
mov eax, dword [esi]
lea ecx, [esp + 0x244]
mov edx, ebx
mov dword [esp + 0xe8], eax
call fcn.004060a0
mov esi, eax
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40da01
call fcn.0047c11f
mov edx, dword [esp + 0x2c]
mov ebx, dword [esi]
lea ecx, [esp + 0x244]
call fcn.004060a0
mov esi, eax
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x40da22
call fcn.0047c11f
mov esi, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0x28]
push ebp
push ebx
push edi
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.00416dd0
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x288], 9
cmp dword [esp + 0x25c], 0x10
jb 0x40da69
mov ecx, dword [esp + 0x248]
push ecx
call fcn.0043815d
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jl 0x40cf20
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 5
mov dword [esp + 0x20], eax
jl 0x40cec8
cmp dword [esp + 0x278], 0x10
jb 0x40daa8
mov edx, dword [esp + 0x264]
push edx
call fcn.0043815d
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0047b4b9
add esp, 0x278
ret 0x10