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

Disassembly:
push 0xffffffffffffffff
push 0x4216fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00414280
test al, al
je 0x40f15a
mov eax, dword [esp + 0x150]
xor ebx, ebx
lea ecx, [esp + 0x28]
mov byte [eax], bl
call fcn.004103c0
mov dword [esp + 0x28], 0x424014
lea ecx, [esp + 0x48]
mov dword [esp + 0x128], ebx
push ecx
mov dword [esp + 0x48], ebx
call fcn.00406860
add esp, 4
mov edx, dword [esp + 0x130]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x12c], 1
call fcn.0040fd20
mov eax, dword [edi + 0x30]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jle 0x40e790
mov ebp, dword [esp + 0x13c]
push 0x18
call fcn.0041df00
add esp, 4
cmp eax, ebx
je 0x40e669
mov dword [eax + 4], ebx
mov dword [eax], 0x424004
mov edi, eax
jmp 0x40e66b
xor edi, edi
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x40e679
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x44]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x138]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov edx, dword [ebp]
mov esi, dword [ebp + 4]
add eax, edx
push 0x28
adc ecx, esi
mov byte [esp + 0x12c], 2
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], ecx
call fcn.0041df00
add esp, 4
cmp eax, ebx
je 0x40e6d2
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], 0x423ff4
mov esi, eax
jmp 0x40e6d4
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x40e6e2
mov eax, dword [esi]
push esi
call dword [eax + 4]
push edi
lea ecx, [esi + 8]
mov byte [esp + 0x12c], 3
call fcn.0040fd20
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
push 4
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
call fcn.0041df00
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x128], 4
je 0x40e730
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004106f0
jmp 0x40e732
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 3
call fcn.0040fe40
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x128], 2
cmp eax, ebx
je 0x40e75a
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp edi, ebx
mov byte [esp + 0x128], 1
je 0x40e76c
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
inc eax
add ebp, 8
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x40e64e
mov esi, dword [esp + 0x3c]
mov edi, ecx
mov edx, dword [edi + 8]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x24], edx
call fcn.0040fb20
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 5
call fcn.0040fdb0
lea eax, [esp + 0xa8]
mov byte [esp + 0x128], 6
push eax
push edi
call fcn.0040f7d0
mov al, byte [esi]
add esp, 8
cmp al, bl
je 0x40e7f7
lea ecx, [esi + 4]
lea edx, [esp + 0xa8]
push ecx
push edx
call fcn.0040f990
add esp, 8
test al, al
sete al
cmp al, bl
je 0x40eae5
lea ecx, [esi + 0x78]
mov dword [esp + 0x20], ecx
call fcn.0041dd00
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x40e813
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x74], ebx
cmp byte [esi + 0x68], bl
je 0x40e8c3
push 0x88
call fcn.0041df00
mov esi, eax
add esp, 4
mov dword [esp + 0x40], esi
cmp esi, ebx
mov byte [esp + 0x128], 7
je 0x40e882
mov dword [esi], 0x4234c8
mov dword [esi + 4], 0x423fe8
lea ecx, [esi + 0xc]
mov dword [esi + 8], ebx
call fcn.0040fb20
lea ecx, [esi + 0x5c]
mov byte [esp + 0x128], 8
call fcn.0040fe70
lea ecx, [esi + 0x74]
mov byte [esp + 0x128], 9
call fcn.0040ff50
mov dword [esi], 0x423fd8
mov dword [esi + 4], 0x423fcc
jmp 0x40e884
xor esi, esi
mov ebp, dword [esp + 0x3c]
cmp esi, ebx
mov byte [esp + 0x128], 6
mov dword [ebp + 0x6c], esi
je 0x40e89d
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [ebp + 0x74]
cmp eax, ebx
je 0x40e8aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0x74], esi
mov eax, dword [ebp + 0x6c]
cmp eax, ebx
je 0x40e8bc
add eax, 4
mov dword [ebp + 0x70], eax
jmp 0x40e8c7
xor eax, eax
mov dword [ebp + 0x70], eax
jmp 0x40e8c7
mov ebp, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x70]
lea eax, [esp + 0xa8]
push eax
mov edx, dword [ecx]
call dword [edx]
mov esi, eax
cmp esi, ebx
je 0x40e937
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0xa
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], bl
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0xb
jmp 0x40f3d5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jle 0x40eab2
mov edx, dword [esp + 0x140]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
mov byte [esp + 0x13c], 0xd
call fcn.00419c90
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x40ecec
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x14]
mov eax, 1
cmp ecx, eax
mov byte [esp + 0x128], 0x10
jne 0x40e9e5
cmp dword [esi + 0x18], eax
jne 0x40e9e5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ed73
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 4]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e9cb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov al, byte [ebp + 0x68]
mov dword [esp + 0x14], esi
cmp al, bl
je 0x40ea1f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x6c]
push eax
call fcn.004187a0
jmp 0x40ea1f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40edfa
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 4]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ea07
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov al, byte [ebp + 0x68]
mov dword [esp + 0x14], esi
cmp al, bl
je 0x40ea1f
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x6c]
push eax
call fcn.004187e0
push 4
call fcn.0041df00
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x128], 0x15
je 0x40ea47
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.004106f0
jmp 0x40ea49
xor eax, eax
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x12c], 0x10
call fcn.0040fe40
mov eax, dword [esp + 0x14]
mov byte [esp + 0x128], 0xd
cmp eax, ebx
je 0x40ea71
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 0xc
cmp eax, ebx
je 0x40ea87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40ea9d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40e947
lea esi, [ebp + 4]
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call fcn.0040fba0
add esi, 0x50
mov ecx, esi
call fcn.0041dd00
lea ecx, [esp + 0xf8]
push ecx
mov ecx, esi
call fcn.004103e0
mov esi, dword [esp + 0x3c]
mov byte [ebp], 1
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
cmp eax, ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], ebx
jle 0x40f4b1
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x140]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x3c]
mov ebp, dword [ecx + edx*4]
mov ecx, dword [eax + 0x84]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov esi, dword [edx + ecx]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0x424378
mov ecx, dword [eax]
push eax
mov byte [esp + 0x134], 0x16
call dword [ecx]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40eb7c
mov edx, dword [ebp + 0xc]
cmp edx, 0xffffffff
ja 0x40f0d5
mov ecx, dword [ebp + 0x10]
mov edi, dword [eax]
push edx
push ecx
push eax
call dword [edi + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x40f164
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40eb8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [esp + 0x154], bl
je 0x40ebea
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x424418
mov edx, dword [eax]
push eax
mov byte [esp + 0x134], 0x1b
call dword [edx]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40ebd8
mov ecx, dword [esp + 0x158]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x40f1d2
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40ebea
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebx
mov esi, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x4243b8
mov eax, dword [esi]
push esi
mov byte [esp + 0x134], 0x1e
call dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40eef1
mov ecx, dword [esp + 0x14c]
cmp ecx, ebx
je 0x40f262
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x130], 0x21
call dword [edx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x40f2cf
xor edi, edi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x98], 0x4233bc
mov ecx, dword [esp + 0x150]
mov esi, dword [esp + 0x14]
push esi
mov byte [esp + 0x12c], 0x24
mov byte [ecx], 1
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.004104c0
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x60]
push ebp
call fcn.00410450
mov eax, dword [esp + 0x60]
mov dx, word [esi]
lea ecx, [esi + 2]
mov word [eax], dx
mov dx, word [eax]
add eax, 2
test dx, dx
je 0x40ecbe
mov dx, word [ecx]
add ecx, 2
mov word [eax], dx
add eax, 2
cmp dx, bx
jne 0x40ecad
mov dword [esp + 0x64], ebp
lea esi, [ebp + ebp]
mov byte [esp + 0x128], 0x25
cmp esi, ebx
je 0x40ee84
jbe 0x40ee6b
push esi
call fcn.0041df00
add esp, 4
mov edi, eax
jmp 0x40ee6d
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 0xc
cmp eax, ebx
je 0x40ed02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40ed18
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0xe
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea eax, [esp + 0x48]
mov byte [esp + 0x128], bl
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0xf
jmp 0x40f23e
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x128], 0xc
cmp ecx, ebx
je 0x40ed8d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40ed9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x11
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x12
jmp 0x40f13d
mov eax, dword [esp + 0x18]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40ee10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x13
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x14
jmp 0x40f13d
xor edi, edi
push ebx
call fcn.004020d0
add esp, 4
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov ecx, dword [esp + 0x64]
xor eax, eax
cmp ecx, ebx
jle 0x40eeaa
mov ecx, dword [esp + 0x60]
xor edx, edx
mov cx, word [ecx + eax*2]
mov dl, ch
mov byte [edi + eax*2], cl
mov byte [edi + eax*2 + 1], dl
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
jl 0x40ee8e
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x40f34b
mov edx, dword [esp + 0x60]
push edx
call fcn.004020d0
push edi
mov dword [esp + 0xa0], 0x4233bc
call fcn.004020d0
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40ef03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
add edx, 4
push 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
call fcn.0040e560
mov ebp, 0x423fc4
mov dword [esp + 0x6c], ebp
push 4
lea ecx, [esp + 0x88]
call fcn.0040e560
mov dword [esp + 0x84], ebp
push edi
lea ecx, [esp + 0x70]
mov byte [esp + 0x12c], 0x29
call fcn.0041dd80
push esi
lea ecx, [esp + 0x88]
call fcn.0041dd80
cmp esi, ebx
jbe 0x40efbc
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x84]
mov eax, dword [edx + 0x48]
lea edi, [eax + ebp*8]
call fcn.0041dd40
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [edx + ecx*4], edi
mov edx, dword [esp + 0x8c]
inc edx
inc ebp
dec esi
mov dword [esp + 0x8c], edx
jne 0x40ef6b
mov edi, dword [esp + 0x20]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x140]
jmp 0x40efc3
mov ebp, dword [esp + 0x140]
cmp edi, ebx
mov dword [esp + 0x10], ebx
jbe 0x40f07c
mov edi, dword [esp + 0x40]
mov edx, dword [ebp + 0x1c]
xor eax, eax
cmp edx, ebx
jle 0x40efed
mov esi, dword [ebp + 0x20]
mov ecx, esi
cmp dword [ecx], edi
je 0x40f00f
inc eax
add ecx, 8
cmp eax, edx
jl 0x40efe1
mov ecx, dword [ebp + 0x30]
xor esi, esi
cmp ecx, ebx
jle 0x40f40f
mov eax, dword [ebp + 0x34]
cmp dword [eax], edi
je 0x40f033
inc esi
add eax, 4
cmp esi, ecx
jge 0x40f40f
jmp 0x40effd
cmp eax, ebx
jl 0x40efed
mov eax, dword [esi + eax*8 + 4]
mov ecx, dword [ebp + 0x48]
lea esi, [ecx + eax*8]
lea ecx, [esp + 0x6c]
call fcn.0041dd40
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [eax + edx*4], esi
jmp 0x40f059
cmp esi, ebx
jl 0x40f40f
lea ecx, [esp + 0x6c]
call fcn.0041dd40
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x74]
lea edx, [ecx + esi*8]
mov ecx, dword [esp + 0x78]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x10]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], edi
jb 0x40efd3
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov ecx, dword [edx + 0x70]
mov edx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x7c]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 8]
lea ecx, [esp + 0x84]
mov byte [esp + 0x128], 0x28
call fcn.0041dcc0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x128], 6
call fcn.0041dcc0
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jge 0x40f4b1
jmp 0x40eb0c
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40f0e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x17
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x18
lea ecx, [esp + 0x28]
call fcn.0041dd00
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0041dcc0
mov eax, 0x80004001
jmp 0x40f3f4
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40f17a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x19
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x1a
jmp 0x40f23e
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40f1e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x1c
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x1d
lea ecx, [esp + 0x28]
call fcn.0041dd00
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0041dcc0
mov eax, edi
jmp 0x40f3f4
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x40f274
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x1f
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x20
jmp 0x40f48a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40f2f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x22
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea edx, [esp + 0x48]
mov byte [esp + 0x128], bl
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x23
jmp 0x40f3d5
mov eax, dword [esp + 0x60]
push eax
call fcn.004020d0
push edi
call fcn.004020d0
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x128], 6
cmp eax, ebx
je 0x40f37f
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x26
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea eax, [esp + 0x48]
mov byte [esp + 0x128], bl
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x27
lea ecx, [esp + 0x28]
call fcn.0041dd00
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0041dcc0
mov eax, esi
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0x2c
lea ecx, [esp + 0x84]
mov byte [esp + 0x128], 0x28
call fcn.0041dcc0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x128], 6
call fcn.0041dcc0
lea ecx, [esp + 0xf8]
mov byte [esp + 0x128], 0x2a
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040f760
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], bl
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x44]
call fcn.00411400
mov dword [esp + 0x28], 0x424014
mov dword [esp + 0x128], 0x2b
lea ecx, [esp + 0x28]
call fcn.0041dd00
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0041dcc0
mov eax, 0x80004005
jmp 0x40f3f4
mov edx, dword [esp + 0xf0]
mov edi, dword [esp + 0xb0]
xor eax, eax
cmp edi, ebx
mov edx, dword [edx]
jbe 0x40f4e1
mov ecx, dword [esp + 0xb4]
lea esi, [ecx + 4]
mov ecx, dword [esi]
cmp edx, ecx
jb 0x40f4f8
sub edx, ecx
inc eax
add esi, 8
cmp eax, edi
jb 0x40f4d1
lea edx, [esp + 0x20]
push 0x424e10
push edx
mov dword [esp + 0x28], 1
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [esp + 0x3c]
cmp byte [edi + 0x68], bl
je 0x40f507
mov ecx, dword [edi + 0x6c]
mov dword [ecx + 0x70], eax
cmp dword [esp + 0x24], ebx
jne 0x40f54c
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040faa0
lea ecx, [esp + 0x44]
mov byte [esp + 0x128], bl
call fcn.0040fb80
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0040fdd0
xor eax, eax
jmp 0x40f3f4
lea ecx, [esp + 0x10c]
call fcn.0040fe20
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10c]
push edx
mov byte [esp + 0x12c], 0x2c
call fcn.0041dd80
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp ecx, ebx
jle 0x40f59a
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call fcn.0040fe40
mov ecx, dword [esp + 0x30]
inc esi
cmp esi, ecx
jl 0x40f57b
mov esi, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
mov eax, dword [edi + 0x74]
push esi
push 1
lea esi, [esp + 0xac]
push ebx
push esi
push ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0xb8], edx
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0x10c]
mov esi, eax
mov byte [esp + 0x128], 6
call fcn.0041dcc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 1
call fcn.0040faa0
lea ecx, [esp + 0x44]
mov byte [esp + 0x128], bl
call fcn.0040fb80
lea ecx, [esp + 0x28]
mov dword [esp + 0x128], 0xffffffff
call fcn.0040fdd0
jmp 0x40f3f2