Function at 0x40e1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44128d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x44e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
lea ebx, [esi*4]
mov dword [ebp - 0x6c], 0
mov byte [eax], 0
mov eax, dword [edi + 0x30]
mov edx, dword [edi + 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0
mov eax, dword [eax + ebx]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea eax, [edx + eax*8]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x34], 0
mov edx, dword [ecx + ebx]
add eax, edx
mov ecx, dword [ecx + ebx + 4]
sub ecx, edx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412320
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
jne 0x40f105
cmp dword [ebp - 0x68], 0x20
mov eax, dword [edi + 0x34]
movzx eax, byte [eax + esi]
mov dword [ebp - 0x54], eax
jbe 0x40e284
mov ebx, 0x80004001
jmp 0x40f09f
lea ecx, [ebp - 0xbc]
call fcn.0040d8b0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov edx, ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.0040ddb0
lea ecx, [ebp - 0xbc]
call fcn.00415a00
test al, al
jne 0x40e2cb
mov ebx, 0x80004001
jmp 0x40f05d
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
mov byte [ebp + 0x1b], 1
movzx eax, byte [eax + esi]
add eax, dword [ecx + ebx]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
test ecx, ecx
je 0x40e319
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, edx
jb 0x40e306
ja 0x40e2fc
cmp eax, esi
jbe 0x40e308
mov ebx, 0x80004005
jmp 0x40f05d
cmp eax, esi
jne 0x40e314
cmp ecx, edx
jne 0x40e314
mov byte [ebp + 0x1b], 1
jmp 0x40e319
xor al, al
mov byte [ebp + 0x1b], al
mov ebx, dword [ebp - 0x1c]
cmp byte [ebx], 0
je 0x40e40b
mov esi, dword [ebp - 0xb8]
cmp esi, dword [ebx + 8]
jne 0x40e40b
xor edx, edx
test esi, esi
je 0x40e358
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebx + 4]
sub edi, ecx
mov eax, dword [edi + ecx]
cmp eax, dword [ecx]
jne 0x40e40b
inc edx
add ecx, 4
cmp edx, esi
jb 0x40e345
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xac]
cmp ebx, dword [eax + 0x14]
jne 0x40e404
xor esi, esi
test ebx, ebx
je 0x40e3a3
mov edi, dword [eax + 0x10]
mov ecx, dword [ebp - 0xb0]
lea edx, [edi + 4]
sub edi, ecx
nop
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
jne 0x40e392
mov eax, dword [ecx + 4]
cmp eax, dword [edx]
jne 0x40e392
mov al, 1
jmp 0x40e394
xor al, al
test al, al
je 0x40e408
inc esi
add edx, 8
add ecx, 8
cmp esi, ebx
jb 0x40e380
mov edi, dword [ebp - 0x78]
xor edx, edx
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x40e3cf
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebx + 0x44]
sub esi, ecx
mov eax, dword [esi + ecx]
cmp eax, dword [ecx]
jne 0x40e40b
mov eax, dword [esi + ecx + 4]
cmp eax, dword [ecx + 4]
jne 0x40e40b
inc edx
add ecx, 8
cmp edx, edi
jb 0x40e3b7
mov esi, dword [ebp - 0xa0]
cmp esi, dword [ebx + 0x20]
jne 0x40e40b
xor edx, edx
test esi, esi
je 0x40e627
mov edi, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0xa4]
sub edi, ecx
nop
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
jne 0x40e40b
inc edx
add ecx, 4
cmp edx, esi
jb 0x40e3f0
jmp 0x40e627
mov ebx, eax
jmp 0x40e40b
mov ebx, dword [ebp - 0x1c]
mov byte [ebx], 0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x40e422
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x58], 0
push 0x84
call fcn.0043410f
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
lea ecx, [esi + 8]
mov dword [esi + 4], 0x448770
call fcn.0040d8b0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi], 0x4487b0
mov dword [esi + 4], 0x44874c
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [ebx + 0x50], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x40e4cf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x58], esi
lea edx, [ebp - 0xbc]
mov ecx, dword [ebx + 0x50]
push edx
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x54], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
jne 0x40f05d
xor edi, edi
cmp dword [ebp - 0x68], edi
jbe 0x40e5a7
mov esi, dword [ebp - 0x6c]
add esi, 0x10
nop dword [eax + eax]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x40]
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00416f30
mov ecx, dword [ebp - 0x40]
mov ebx, eax
mov edx, dword [ebp - 0x3c]
test ebx, ebx
jne 0x40e54c
mov eax, dword [esi]
cmp eax, 1
jne 0x40e574
test ecx, ecx
jne 0x40e57d
mov ebx, 0x80004001
mov byte [ebp - 4], 9
test edx, edx
je 0x40e55d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x40f05d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40f05d
test edx, edx
je 0x40e547
cmp dword [ebp - 0x34], eax
jne 0x40e547
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040f240
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x68]
jb 0x40e510
jmp 0x40e5aa
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0xbc]
lea esi, [ebx + 4]
push eax
mov ecx, esi
call fcn.0040d920
add esi, 0x40
lea eax, [ebp - 0x7c]
cmp eax, esi
je 0x40e624
mov edi, dword [ebp - 0x78]
cmp edi, dword [esi + 8]
jbe 0x40e608
push dword [esi]
call fcn.004340fc
xor ecx, ecx
mov dword [esi + 8], 0
mov eax, edi
mov dword [esi + 4], 0
mov edx, 8
mov dword [esi], 0
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
add esp, 8
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 4], edi
test edi, edi
je 0x40e624
lea eax, [edi*8]
push eax
push dword [ebp - 0x7c]
push dword [esi]
call fcn.00437af0
add esp, 0xc
mov byte [ebx], 1
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
cmp eax, 0x416390
jne 0x40f11a
xor edi, edi
cmp dword [ecx + 0x6c], edi
jbe 0x40e71d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ecx + 0x68]
mov esi, dword [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x40e665
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x40e675
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
test eax, eax
je 0x40e67d
xor ebx, ebx
jmp 0x40e696
call ebx
test eax, eax
mov ebx, 1
cmovne ebx, eax
test ebx, ebx
jle 0x40e698
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jne 0x40e71f
mov eax, dword [esi + 4]
test eax, eax
je 0x40e6d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e6c8
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x40e6ee
jmp 0x40e6d7
mov dword [esi + 4], 0
jmp 0x40e6d7
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 4], eax
test eax, eax
jne 0x40e6ee
call ebx
mov ecx, dword [ebp - 0x24]
inc edi
mov word [esi + 8], 0x100
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp edi, dword [ecx + 0x6c]
jb 0x40e650
xor ebx, ebx
test ebx, ebx
jne 0x40f05d
mov eax, dword [ebp + 0x14]
xor dl, dl
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x15], dl
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x68], ebx
jbe 0x40eb7c
mov edi, dword [ebp - 0x6c]
lea eax, [ecx*8]
add edi, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], edi
nop dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
cmp eax, 0x416370
jne 0x40f123
mov eax, dword [ecx + 0x74]
mov eax, dword [eax + ebx*4]
add eax, 0x18
mov esi, dword [eax]
test esi, esi
jne 0x40e788
mov esi, dword [eax + 4]
cmp byte [ebp - 0x15], 0
jne 0x40e830
cmp byte [ebp + 0x30], 0
je 0x40e7e1
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
mov eax, dword [esi]
push ecx
push 0x4484c4
push esi
call dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e7d3
mov ecx, dword [eax]
mov byte [ebp - 0x15], 1
cmp ecx, 0x448b48
jne 0x40f12b
mov edx, dword [ebp + 0x34]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x40e7e1
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
mov eax, dword [esi]
push ecx
push 0x448484
push esi
call dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e822
mov ecx, dword [eax]
mov byte [ebp - 0x15], 1
cmp ecx, 0x448b88
jne 0x40f141
mov edx, dword [ebp + 0x38]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp + 0x3c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x40e830
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x15
mov eax, dword [esi]
push ecx
push 0x448464
push esi
call dword [eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
test eax, eax
je 0x40e877
mov ecx, dword [eax]
push edx
push dword [edi - 4]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, 0x80070057
je 0x40ec1f
test ebx, ebx
jne 0x40ec24
mov eax, dword [ebp - 0x10]
jmp 0x40e87f
test edx, edx
jne 0x40ec43
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x40e88d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1d
mov eax, dword [esi]
push ecx
push 0x448494
push esi
call dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e8ce
mov cl, byte [ebp + 0x1b]
mov edx, dword [eax]
mov byte [ebp - 0x48], cl
movzx ecx, cl
push ecx
push eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40ec29
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0x20
test eax, eax
je 0x40e8dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov ebx, dword [edi + 4]
xor edi, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0x40e90f
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
xor esi, esi
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x70], esi
test ebx, ebx
je 0x40e93c
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
xor edx, edx
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x40ea05
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x60]
xor eax, eax
test ecx, ecx
je 0x40e970
nop dword [eax]
mov edi, dword [ebp - 0x64]
cmp dword [edi + eax*8], ebx
mov edi, dword [ebp - 0x14]
je 0x40e9a3
inc eax
cmp eax, ecx
jb 0x40e960
mov eax, dword [ebp - 0x58]
xor edx, edx
test eax, eax
je 0x40e98a
mov ecx, dword [ebp - 0x5c]
nop dword [eax]
cmp dword [ecx + edx*4], ebx
je 0x40e9c2
inc edx
cmp edx, eax
jb 0x40e980
push esi
call fcn.004340fc
push edi
call fcn.004340fc
add esp, 8
mov ebx, 0x80004001
jmp 0x40f05d
test eax, eax
js 0x40e970
mov edi, dword [ebp - 0x64]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi + eax*8 + 4]
mov ecx, dword [ecx + 0x28]
add eax, dword [ebp - 0x50]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp - 0x10]
mov dword [esi + edx*4], eax
jmp 0x40e9eb
test edx, edx
js 0x40e98a
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov ecx, dword [eax + edx*8 + 8]
sub ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 0xc]
sbb eax, dword [edi + edx*8 + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx], ecx
mov ecx, edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov dword [esi + edx*4], ecx
mov edi, dword [ebp - 0x14]
inc edx
add ecx, 8
mov dword [ebp - 0x20], edx
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x44], ebx
cmp edx, dword [ebp - 0x2c]
jb 0x40e953
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp - 0x30]
test eax, eax
je 0x40ea1b
cmp ebx, dword [ebp - 0x98]
jne 0x40ea1b
mov edx, eax
jmp 0x40ea26
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x28]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
cmp eax, 0x40dad0
jne 0x40f15a
mov eax, dword [ecx + 0x74]
mov ebx, dword [eax + ebx*4]
mov al, byte [ebp - 0x48]
mov dword [ebp - 0x10], ebx
mov byte [ebx + 0x24], al
test edx, edx
je 0x40ea61
mov eax, dword [edx]
lea ecx, [ebx + 0x28]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 0x30], ecx
jmp 0x40ea76
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
push dword [ebx + 0x20]
lea ecx, [ebx + 0x34]
call fcn.0040f430
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x44], 0
cmp eax, dword [ebx + 0x48]
jbe 0x40ead9
cmp eax, 0x7fffffff
ja 0x40f167
push dword [ebx + 0x40]
call fcn.004340fc
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 4
mov dword [ebx + 0x40], 0
mul edx
mov dword [ebx + 0x48], 0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
mov dword [ebx + 0x40], eax
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x44], eax
xor ebx, ebx
cmp dword [ecx + 0x20], ebx
jbe 0x40eb4c
lea edi, [ecx + 0x34]
nop dword [eax]
test esi, esi
je 0x40eb28
mov eax, dword [esi + ebx*4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40eb28
mov ecx, dword [edi]
lea edx, [ebx*8]
mov eax, dword [eax]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add ecx, edx
mov eax, dword [eax + 0x40]
mov dword [eax + ebx*4], ecx
mov ecx, dword [ebp - 0x10]
jmp 0x40eb43
mov eax, dword [edi]
mov dword [eax + ebx*8], 0
mov dword [eax + ebx*8 + 4], 0
mov eax, dword [ecx + 0x40]
mov dword [eax + ebx*4], 0
inc ebx
cmp ebx, dword [ecx + 0x20]
jb 0x40eaf0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
push esi
call fcn.004340fc
push edi
mov byte [ebp - 4], 2
call fcn.004340fc
mov edi, dword [ebp - 0x24]
inc ebx
add dword [ebp - 0x4c], 8
add edi, 0x18
add esp, 8
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], edi
cmp ebx, dword [ebp - 0x68]
jb 0x40e760
cmp dword [ebp + 0x20], 0
je 0x40ecad
mov eax, dword [ebp - 0x1c]
mov dl, byte [ebp + 0x1b]
xor dl, 1
mov byte [ebp + 0x30], dl
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
cmp eax, 0x416480
jne 0x40f191
mov edi, dword [ecx + 0x28]
test dl, dl
jne 0x40ecaa
mov eax, dword [ecx + 0x74]
lea edx, [edi*4]
mov eax, dword [edx + eax]
cmp dword [eax + 0x20], 1
jne 0x40ecaa
mov ebx, dword [ecx + 0x44]
nop word [eax + eax]
cmp byte [ebx + edi], 0
je 0x40ecaa
mov eax, dword [ecx + 0x2c]
mov esi, dword [edx + eax]
xor eax, eax
cmp dword [ecx + 0x20], eax
jbe 0x40ec63
mov edx, dword [ecx + 0x1c]
nop
cmp dword [edx], esi
je 0x40ec5f
inc eax
add edx, 4
cmp eax, dword [ecx + 0x20]
jb 0x40ebf0
jmp 0x40ec63
mov byte [ebp - 4], 0xe
jmp 0x40ec09
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f05d
push eax
mov eax, dword [eax]
call dword [eax + 8]
jmp 0x40f05d
mov ebx, 0x80004001
mov eax, dword [ebp - 0x10]
jmp 0x40ec48
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f05d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40f05d
mov ebx, 0x80004001
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x40f05d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40f05d
test eax, eax
jns 0x40ecaa
xor edx, edx
cmp dword [ecx + 0x14], edx
jbe 0x40f17c
mov eax, dword [ecx + 0x10]
cmp dword [eax], esi
je 0x40ec84
inc edx
add eax, 8
cmp edx, dword [ecx + 0x14]
jae 0x40f17c
jmp 0x40ec71
test edx, edx
js 0x40f17c
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [ecx + 0x74]
lea edx, [edi*4]
mov eax, dword [edx + eax]
cmp dword [eax + 0x20], 1
je 0x40ebd0
mov dword [ecx + 0x60], edi
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0x30], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp + 0x34], eax
mov dword [ebp - 0x34], eax
push 0x30
mov byte [ebp - 4], 0x24
call fcn.0043410f
mov edi, eax
add esp, 4
mov dword [ebp + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi], 0x4487a4
mov dword [edi + 8], ebx
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 0x26
call fcn.00408430
mov byte [ebp - 4], 0x24
mov eax, dword [edi]
push edi
mov dword [ebp - 0x70], edi
call dword [eax + 4]
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp + 8]
cmp ecx, 1
jbe 0x40ed4a
mov edx, dword [esi]
lea eax, [edi + 0x10]
push eax
mov eax, dword [ebp - 0x28]
push ebx
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
adc eax, dword [ebp + 0x10]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x40f04b
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40ed42
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x58]
xor ebx, ebx
mov dword [edi + 8], esi
xor eax, eax
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x40ef54
nop word [eax + eax]
mov dword [ebp + 0x18], 0
mov edx, dword [ebp - 0x28]
shl eax, 3
mov byte [ebp - 4], 0x2a
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + edx]
add edi, dword [ebp + 0xc]
mov ebx, dword [eax + edx + 4]
adc ebx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x40eda8
push ebx
push edi
mov ecx, esi
call fcn.0040d6b0
mov ebx, eax
test ebx, ebx
jne 0x40ef4f
test esi, esi
je 0x40eda3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [ebp + 0x18], esi
jmp 0x40edf9
push 0x20
call fcn.0043410f
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov dword [esi + 4], 0
mov dword [esi], 0x448794
mov dword [esi + 0x18], 0
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
push ecx
mov dword [ebp + 0x18], esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40edea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
push 0x28
call fcn.0043410f
mov ebx, dword [ebp + 0x1c]
mov edi, eax
mov edx, dword [ebp + 0x34]
add esp, 4
mov dword [ebp - 0x44], edi
mov dword [edi + 4], 0
mov dword [edi], 0x4487bc
mov dword [edi + 8], 0
cmp ebx, edx
jne 0x40ee9a
cmp edx, 0x7fffffff
jae 0x40f19b
mov eax, edx
mov ecx, 0x7fffffff
sub ecx, edx
shr eax, 2
inc eax
cmp eax, ecx
cmovbe ecx, eax
lea eax, [edx + ecx]
xor ecx, ecx
mov dword [ebp + 0x34], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
add esp, 4
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ebx, ebx
je 0x40ee80
lea eax, [ebx*4]
push eax
push dword [ebp + 0x30]
push ecx
call fcn.00437af0
add esp, 0xc
push dword [ebp + 0x30]
call fcn.004340fc
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp + 0x30], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x34], eax
push 4
call fcn.0043410f
mov edx, dword [ebp + 0x30]
mov ecx, eax
mov eax, ebx
mov dword [ebp + 0x3c], ecx
add esp, 4
mov dword [ecx], 0
lea ebx, [eax + 1]
mov dword [edx + eax*4], ecx
mov eax, dword [edi]
push edi
mov dword [ebp + 0x1c], ebx
mov dword [ebp - 0x38], ebx
call dword [eax + 4]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40eed8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x3c]
mov dword [eax], edi
test esi, esi
je 0x40eee4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40eef1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov dword [edi + 8], esi
mov eax, dword [edx + ecx + 8]
sub eax, dword [edx + ecx]
mov ecx, dword [edx + ecx + 0xc]
sbb ecx, dword [edx + ebx + 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov byte [ebp - 4], 0x2e
mov ebx, dword [ebp + 0x1c]
test esi, esi
je 0x40ef35
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x24]
inc eax
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
cmp eax, ecx
jae 0x40ef54
mov esi, dword [ebp + 8]
jmp 0x40ed60
jmp 0x40f048
xor edi, edi
mov dword [ebp + 8], edi
test ebx, ebx
je 0x40ef7d
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043424b
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test ebx, ebx
je 0x40efa3
sub dword [ebp + 0x30], edi
mov ecx, edi
mov edi, dword [ebp + 0x30]
nop dword [eax]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov eax, dword [eax]
mov dword [ecx - 4], eax
sub ebx, 1
jne 0x40ef90
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x20], 0
je 0x40f03a
xor esi, esi
mov dword [ebp + 0x30], esi
mov ebx, dword [ebp + 0x24]
mov byte [ebp - 4], 0x30
test ebx, ebx
je 0x40f009
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x54]
push dword [ecx + 0x60]
call fcn.00415c90
test al, al
jne 0x40f009
push 0xc
call fcn.0043410f
mov esi, eax
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [esi + 4], 0
mov dword [esi], 0x44873c
mov dword [esi + 8], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esi]
cmp eax, 0x44873c
jne 0x40f002
inc dword [esi + 4]
jmp 0x40f006
push esi
call dword [eax + 4]
mov dword [ebp + 0x30], esi
mov eax, dword [ebp + 0x20]
test esi, esi
push dword [ebp + 0x2c]
mov dword [ebp + 0x34], eax
cmovne ebx, esi
mov eax, dword [ebp - 0x1c]
push ebx
mov ecx, dword [eax + 0x54]
lea eax, [ebp + 0x34]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
mov byte [ebp - 4], 0x31
test esi, esi
je 0x40f03f
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40f03f
mov ebx, 0x80004005
push edi
call fcn.004340fc
add esp, 4
mov edi, dword [ebp + 0x14]
mov byte [ebp - 4], 0x34
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x3c]
call fcn.0040f3b0
push dword [ebp - 0x7c]
call fcn.004340fc
push dword [ebp - 0x88]
call fcn.004340fc
push dword [ebp - 0x94]
call fcn.004340fc
push dword [ebp - 0xa4]
call fcn.004340fc
push dword [ebp - 0xb0]
call fcn.004340fc
push dword [ebp - 0xbc]
call fcn.004340fc
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x5c]
call fcn.004340fc
push dword [ebp - 0x64]
call fcn.004340fc
mov eax, dword [ebp - 0x6c]
add esp, 8
test eax, eax
je 0x40f0ef
push 0x40f5f0
lea esi, [eax - 4]
mov dword [ebp - 4], 0x35
push dword [esi]
push 0x18
push eax
call fcn.0043413f
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*8 + 4]
push ecx
push esi
call fcn.00434101
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
push 0x44c518
lea eax, [ebp + 0x30]
mov dword [ebp + 0x30], 0x1330368
push eax
call fcn.00435d4e
call eax
mov ebx, eax
jmp 0x40e71f
push ebx
call eax
jmp 0x40e77f
push dword [ebp + 0x34]
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40ebff
jmp 0x40e7d0
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40ec05
jmp 0x40e81f
push dword [ebp - 0x48]
push esi
push edx
push ebx
call eax
jmp 0x40eb4f
push 0x44c518
lea eax, [ebp + 0x30]
mov dword [ebp + 0x30], 0x7e5
push eax
call fcn.00435d4e
push 0x44c518
lea eax, [ebp + 0x30]
mov dword [ebp + 0x30], 0x13377c5
push eax
call fcn.00435d4e
push dword [ebp + 0x30]
call eax
jmp 0x40ecad
push 0x44c518
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x7e5
push eax
call fcn.00435d4e
int3