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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
push ebx
push esi
push edi
mov eax, dword [0x42a050]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
xor ebx, ebx
push 8
pop edi
mov esi, 0x4052d4
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], edi
mov dword [esp + 0xec], esi
mov dword [esp + 0x290], ebx
mov edx, 0x4052d4
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], 1
mov dword [esp + 0x13c], edx
push 4
pop ecx
mov eax, 0x4052d4
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x114], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xc0], 0x4052dc
mov dword [esp + 0x168], ebx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], ecx
mov dword [esp + 0x164], eax
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], edi
mov dword [esp + 0x150], esi
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], 1
mov dword [esp + 0x100], edx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ecx
mov dword [esp + 0x128], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x170]
push eax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x108]
push eax
push dword [ebp + 0x14]
mov byte [esp + 0x2b4], 7
push ebx
call fcn.0040f833
lea edi, [esp + 0x1f4]
mov dword [esp + 0x64], ebx
call fcn.00414193
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
adc eax, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
cmp dword [esp + 0xc8], ebx
jle 0x4107d2
mov dword [esp + 0x17c], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x178], 0x4052c8
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x38]
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x28], edi
push 0xc
mov byte [esp + 0x294], 9
call fcn.004235e6
pop ecx
mov dword [esp + 0x34], eax
mov byte [esp + 0x290], 0xa
cmp eax, ebx
je 0x40fc5a
lea ebx, [esp + 0x178]
call fcn.00411be9
xor ebx, ebx
jmp 0x40fc5c
xor eax, eax
mov esi, dword [ebp + 0x18]
push eax
mov byte [esp + 0x294], 9
call fcn.00414f46
push ebx
mov byte [esp + 0x294], 8
call fcn.00423539
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x44]
cmp eax, ebx
jne 0x40fc99
mov dword [esp + 0x6c], ebx
xor ecx, ecx
jmp 0x40fcd7
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x410b25
mov edx, dword [edi + 0x1c]
xor esi, esi
cmp edx, ebx
jle 0x40fcbf
mov eax, dword [edi + 0x20]
add eax, 4
cmp dword [eax], ecx
je 0x40fcc2
inc esi
add eax, 8
cmp esi, edx
jl 0x40fcb3
or esi, 0xffffffff
cmp esi, ebx
jl 0x40fcc9
dec ecx
jmp 0x40fc9c
mov edi, dword [edi + 0x48]
mov eax, dword [edi + ecx*8]
mov ecx, dword [edi + ecx*8 + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
cmp eax, eax
jne 0x410b20
cmp ebx, ecx
jne 0x410b20
mov esi, dword [esp + 0x30]
mov edi, eax
call fcn.004118e8
push 0x14
call fcn.004235e6
pop ecx
cmp eax, ebx
je 0x40fd13
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], 0x4054a8
mov dword [esp + 0x2c], edi
jmp 0x40fd19
mov dword [esp + 0x2c], ebx
mov edi, ebx
mov dword [esp + 0x1f0], edi
cmp edi, ebx
je 0x40fd2a
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x290], 0xb
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov eax, dword [esp + 0xf8]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
call fcn.0040e749
test al, al
je 0x4108a1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 4
mov dword [esp + 0x50], 0x40556c
mov dword [esp + 0x78], ebx
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x294], 0xd
call fcn.00417e84
mov byte [esp + 0x290], 0xe
cmp esi, ebx
je 0x40fdc5
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x40fdd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], ebx
cmp dword [eax + 0x30], ebx
jle 0x40feeb
push 0x18
call fcn.004235e6
pop ecx
cmp eax, ebx
je 0x40fe01
mov dword [eax + 4], ebx
mov dword [eax], 0x405550
mov edi, eax
jmp 0x40fe03
xor edi, edi
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x40fe11
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x290], 0xf
lea eax, [esp + 0x78]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x94]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
add dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
mov eax, dword [eax + 4]
adc dword [esp + 0x4c], eax
push 0x28
call fcn.004235e6
pop ecx
cmp eax, ebx
je 0x40fe67
mov dword [eax + 4], ebx
mov dword [eax], 0x405540
mov dword [eax + 8], ebx
jmp 0x40fe69
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x40fe7b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov byte [esp + 0x290], 0x10
mov esi, dword [esp + 0x14]
add esi, 8
call fcn.00412bb6
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x10], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x54]
push eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
call fcn.00418913
mov byte [esp + 0x290], 0xf
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [esp + 0x290], 0xe
mov eax, dword [edi]
push edi
call dword [eax + 8]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x30]
jl 0x40fde8
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x184]
call fcn.004141fa
mov dword [esp + 0x1d8], ebx
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e4], 8
mov dword [esp + 0x1d4], 0x4052d4
lea eax, [esp + 0x184]
mov byte [esp + 0x290], 0x11
call fcn.00413f8a
cmp byte [esp + 0x1f4], bl
je 0x40ff69
lea esi, [esp + 0x1f8]
lea eax, [esp + 0x184]
call fcn.004140b0
neg al
sbb al, al
inc al
je 0x41023c
push dword [esp + 0x274]
mov eax, dword [esp + 0x270]
push ebx
lea ecx, [esp + 0x274]
call dword [eax + 4]
mov eax, dword [esp + 0x268]
cmp eax, ebx
je 0x40ff9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x268], ebx
cmp byte [esp + 0x25c], bl
je 0x40fff0
push 0x88
call fcn.004235e6
pop ecx
cmp eax, ebx
je 0x40ffbb
mov esi, eax
call fcn.00414e54
jmp 0x40ffbd
xor eax, eax
mov edi, eax
lea esi, [esp + 0x268]
mov dword [esp + 0x260], eax
call fcn.00412bb6
mov eax, dword [esp + 0x260]
cmp eax, ebx
je 0x40ffe9
add eax, 4
mov dword [esp + 0x264], eax
jmp 0x40fff0
mov dword [esp + 0x264], ebx
mov ecx, dword [esp + 0x264]
mov eax, dword [ecx]
lea edx, [esp + 0x184]
push edx
call dword [eax]
mov esi, eax
cmp esi, ebx
je 0x410072
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x12
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x294], 0x13
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x41005b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
jmp 0x41073f
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x1c], ebx
jle 0x4101f5
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x298], 0x15
push dword [esi + 4]
push dword [esi]
call fcn.00412b6c
mov edi, eax
cmp edi, ebx
jne 0x4103d1
mov dword [esp + 0x20], ebx
mov byte [esp + 0x290], 0x18
cmp dword [esi + 0x14], 1
mov edi, dword [esp + 0x18]
jne 0x410118
cmp dword [esi + 0x18], 1
jne 0x410118
cmp edi, ebx
je 0x4108ab
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [esp + 0x20], edi
cmp byte [esp + 0x25c], bl
je 0x41015e
mov esi, dword [esp + 0x260]
mov ecx, esi
call fcn.00418515
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov esi, dword [ecx + eax*4 - 4]
lea esi, [esi + 0x14]
call fcn.00412bb6
jmp 0x41015e
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x4109f8
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [esp + 0x20], esi
cmp byte [esp + 0x25c], bl
je 0x41015e
mov esi, dword [esp + 0x260]
mov ecx, esi
call fcn.00418515
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov esi, dword [ecx + eax*4 - 4]
mov edi, dword [esp + 0x24]
lea esi, [esi + 0x18]
call fcn.00412bb6
push 4
call fcn.004235e6
mov esi, eax
pop ecx
mov dword [esp + 0x34], esi
mov byte [esp + 0x290], 0x1d
cmp esi, ebx
je 0x41018a
mov eax, dword [esp + 0x20]
mov dword [esi], eax
cmp eax, ebx
je 0x41018c
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x41018c
xor esi, esi
push esi
lea esi, [esp + 0x270]
mov byte [esp + 0x294], 0x18
call fcn.00414f46
mov byte [esp + 0x290], 0x15
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4101b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x290], 0x14
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4101cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x290], 0x11
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4101e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jl 0x410080
lea eax, [esp + 0x184]
lea esi, [esp + 0x1f8]
call fcn.00414eba
push dword [esp + 0x250]
mov eax, dword [esp + 0x24c]
push ebx
lea ecx, [esp + 0x250]
call dword [eax + 4]
lea edi, [esp + 0x1d4]
lea eax, [esp + 0x248]
call fcn.00411d0d
mov byte [esp + 0x1f4], 1
mov ecx, dword [esp + 0x264]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1c], ebx
jle 0x410517
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax]
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x294], 0x1e
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x405230
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4102cc
mov edx, dword [esi + 0xc]
cmp edx, 0xffffffff
ja 0x410a44
cmp edx, ebx
jbe 0x4102cc
mov ecx, dword [esi + 0x10]
mov edi, dword [eax]
push edx
push ecx
push eax
call dword [edi + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x4105cc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x290], 0x11
cmp eax, ebx
je 0x4102de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
push 4
pop ecx
add dword [esp + 0x20], ecx
mov eax, 0x4052d4
mov dword [esp + 0x14], edx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xd4], eax
mov ebx, edx
lea esi, [esp + 0xac]
mov byte [esp + 0x290], 0x27
call fcn.00412c43
mov ebx, edi
lea esi, [esp + 0xd4]
call fcn.00412c43
test edi, edi
je 0x410384
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx*8]
push eax
lea esi, [esp + 0xd8]
call fcn.00414f46
inc dword [esp + 0x24]
dec edi
jne 0x410362
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jbe 0x4104bd
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x1c]
xor esi, esi
test edx, edx
jle 0x4103b4
mov ecx, dword [eax + 0x20]
cmp dword [ecx], edi
je 0x410468
inc esi
add ecx, 8
cmp esi, edx
jl 0x4103a4
or ecx, 0xffffffff
test ecx, ecx
js 0x41046f
mov edx, dword [eax + 0x20]
mov ecx, dword [edx + ecx*8 + 4]
mov eax, dword [eax + 0x48]
lea eax, [eax + ecx*8]
jmp 0x4104a0
mov byte [esp + 0x290], 0x14
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4103e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x290], 0x11
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4103fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x16
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
mov byte [esp + 0x290], 0x17
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x41044f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
mov esi, edi
jmp 0x41073f
mov ecx, esi
jmp 0x4103b7
mov ecx, dword [eax + 0x30]
xor edx, edx
test ecx, ecx
jle 0x41048b
mov eax, dword [eax + 0x34]
cmp dword [eax], edi
je 0x4105c5
inc edx
add eax, 4
cmp edx, ecx
jl 0x41047b
or eax, 0xffffffff
test eax, eax
js 0x410a88
mov ecx, dword [esp + 0x94]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0xb0]
call fcn.00414f46
inc ebx
inc edi
mov dword [esp + 0x34], edi
cmp ebx, dword [esp + 0x14]
jb 0x410394
push dword [esp + 0xe0]
mov ecx, dword [esp + 0x268]
push dword [esp + 0xbc]
mov eax, dword [ecx]
push dword [esp + 0x20]
call dword [eax + 8]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x290], 0x26
call fcn.00412bd6
lea ecx, [esp + 0xac]
mov byte [esp + 0x290], 0x11
call fcn.00412bd6
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, dword [esp + 0x1c]
jl 0x410262
mov ecx, dword [esp + 0x1cc]
mov ecx, dword [ecx]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xec]
lea edx, [esp + 0x188]
call fcn.00413eae
cmp byte [esp + 0x25c], bl
je 0x410552
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xe8]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x1c], ebx
jne 0x410618
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x2a
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x294], 0x2b
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x4105ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
jmp 0x410747
mov eax, edx
jmp 0x41048e
mov byte [esp + 0x290], 0x11
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4105e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x21
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
mov byte [esp + 0x290], 0x22
jmp 0x41042e
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], 4
mov dword [esp + 0x98], 0x4052d4
mov byte [esp + 0x290], 0x2c
mov ebx, dword [esp + 0x58]
lea esi, [esp + 0x98]
call fcn.00412c43
xor ebx, ebx
xor edi, edi
cmp dword [esp + 0x58], ebx
jle 0x410699
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + edi*4]
mov esi, dword [eax]
lea eax, [esp + 0x98]
call fcn.00412c08
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + eax*4], esi
inc dword [esp + 0xa0]
inc edi
cmp edi, dword [esp + 0x58]
jl 0x410665
mov eax, dword [esp + 0x2c]
push ebx
push 1
push ebx
lea edx, [esp + 0x74]
push edx
push dword [esp + 0x68]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x27c]
mov ecx, dword [eax]
push ebx
push dword [esp + 0xbc]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x98]
mov esi, eax
mov byte [esp + 0x290], 0x11
call fcn.00412bd6
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x2d
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x294], 0x2e
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x41072b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
xor ebx, ebx
cmp esi, ebx
jne 0x41092a
mov esi, dword [esp + 0x28]
cmp byte [esi + 0x54], bl
je 0x410769
mov eax, dword [esp + 0x30]
push dword [esp + 0x6c]
mov ecx, dword [eax + 8]
call fcn.0040e502
cmp eax, dword [esi + 0x50]
jne 0x410b20
mov dword [esp + 0x30], ebx
cmp dword [esi + 0x30], ebx
jle 0x4107ab
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0xf8]
mov ecx, dword [edx + esi*8]
mov edx, dword [edx + esi*8 + 4]
inc esi
add dword [esp + 0x3c], ecx
adc dword [esp + 0x40], edx
add dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x28]
adc dword [eax + 0x4c], edx
inc dword [esp + 0x30]
mov edx, dword [esp + 0x30]
cmp edx, dword [ecx + 0x30]
jl 0x410779
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x290], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x38]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0xc8]
jl 0x40fc18
lea eax, [esp + 0x1f4]
push eax
mov byte [esp + 0x294], 7
call fcn.00410b42
lea ecx, [esp + 0x128]
mov byte [esp + 0x290], 6
call fcn.00412bd6
lea ecx, [esp + 0x100]
mov byte [esp + 0x290], 5
call fcn.00412bd6
lea ecx, [esp + 0x150]
mov byte [esp + 0x290], 4
call fcn.00412bd6
lea ecx, [esp + 0x164]
mov byte [esp + 0x290], 3
call fcn.00412bd6
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x294], 2
call fcn.0040daa7
lea ecx, [esp + 0x114]
mov byte [esp + 0x290], 1
call fcn.00412bd6
lea ecx, [esp + 0x13c]
mov byte [esp + 0x290], bl
call fcn.00412bd6
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0xec]
call fcn.00412bd6
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, 0x80004001
jmp 0x41092e
mov byte [esp + 0x290], 0x14
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4108c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x19
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
mov byte [esp + 0x290], 0x1a
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x410913
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
mov esi, 0x80004001
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x290], 8
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [esp + 0x1f4]
push eax
mov byte [esp + 0x294], 7
call fcn.00410b42
lea ecx, [esp + 0x128]
mov byte [esp + 0x290], 6
call fcn.00412bd6
lea ecx, [esp + 0x100]
mov byte [esp + 0x290], 5
call fcn.00412bd6
lea ecx, [esp + 0x150]
mov byte [esp + 0x290], 4
call fcn.00412bd6
lea ecx, [esp + 0x164]
mov byte [esp + 0x290], 3
call fcn.00412bd6
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x294], 2
call fcn.0040daa7
lea ecx, [esp + 0x114]
mov byte [esp + 0x290], 1
call fcn.00412bd6
lea ecx, [esp + 0x13c]
mov byte [esp + 0x290], bl
call fcn.00412bd6
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0xec]
call fcn.00412bd6
mov eax, esi
jmp 0x410889
mov byte [esp + 0x290], 0x11
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x410a0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x1b
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
mov byte [esp + 0x290], 0x1c
jmp 0x4108f2
mov byte [esp + 0x290], 0x11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x1f
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
mov byte [esp + 0x290], 0x20
jmp 0x4108f2
lea ecx, [esp + 0xd4]
mov byte [esp + 0x290], 0x26
call fcn.00412bd6
lea ecx, [esp + 0xac]
mov byte [esp + 0x290], 0x11
call fcn.00412bd6
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x290], 0x28
call fcn.00412bd6
lea eax, [esp + 0x184]
push eax
mov byte [esp + 0x294], 0xe
call fcn.0040e618
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x294], 0x29
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x290], 0xc
mov eax, dword [esp + 0x78]
test eax, eax
je 0x410b02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x294], 0xb
call fcn.00414f70
mov esi, 0x80004005
xor ebx, ebx
jmp 0x41092a
call fcn.0040ea39
push 0x4271d8
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 1
call fcn.00423b07
int3