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

Disassembly:
push 0xffffffffffffffff
push 0x4210b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x422ac4
push 1
push ebx
push 0x422a50
mov byte [esp + 0xcc], 1
call dword [0x422254]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [edi + 8]
push 0x42411c
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40c290
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push 0x422a60
mov dword [esp + 0x44], ebx
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
mov dword [esp + 0x14], ebx
cmp esi, ebx
mov byte [esp + 0xb8], 2
jl 0x40c754
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x40c320
mov eax, dword [esp + 0x14]
push eax
call dword [0x4221f0]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb8], bl
je 0x40c2fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0xb8], 0xffffffff
je 0x40c316
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004005
jmp 0x40c78b
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0x20]
mov ebp, dword [0x4221f0]
mov esi, eax
cmp dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
jbe 0x40c74b
mov edi, dword [0x4221d4]
lea eax, [esp + 0x8c]
push eax
call edi
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
push eax
mov byte [esp + 0xc4], 3
call dword [edx + 0x24]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x2c]
push ecx
push 0x424230
mov dword [esp + 0x34], ebx
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
cmp esi, ebx
jl 0x40c6e1
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
mov esi, eax
cmp dword [esp + 0x54], 2
jne 0x40c6d7
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x4c]
mov esi, eax
cmp esi, ebx
jl 0x40c6d7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push ecx
push 0x424270
mov dword [esp + 0x30], ebx
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
cmp esi, ebx
jl 0x40c6cd
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov esi, eax
cmp dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
jbe 0x40c6c3
lea edx, [esp + 0x7c]
push edx
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x44]
push edx
push eax
mov byte [esp + 0xc4], 4
call dword [ecx + 0x24]
lea ecx, [esp + 0x7c]
mov esi, eax
call fcn.0040a4a0
test eax, eax
jbe 0x40c69b
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x1c]
push edx
push 0x424260
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40c69b
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0xc0], 5
call dword [ecx + 0x3c]
lea eax, [esp + 0x5c]
push eax
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push eax
mov byte [esp + 0xc0], 6
call dword [ecx + 0x44]
mov esi, eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c67f
push eax
call dword [0x4221dc]
cmp eax, ebx
jbe 0x40c67f
lea ecx, [esp + 0x5c]
call fcn.0040a4a0
test eax, eax
jbe 0x40c67f
mov dword [esp + 0x9c], ebx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x60], ebx
call dword [0x422234]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push 0x422ae4
push 0x17
push ebx
lea eax, [esp + 0xb0]
push eax
mov byte [esp + 0xcc], 8
call dword [0x422254]
mov esi, eax
cmp esi, ebx
jl 0x40c70d
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040b520
add esp, 4
cmp eax, ebx
jl 0x40c5e0
lea edx, [esp + 0x6c]
push edx
mov word [esp + 0x70], bx
call dword [0x4221c8]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov word [esp + 0x6c], 8
jne 0x40c560
xor eax, eax
jmp 0x40c577
push ecx
call dword [0x4221e8]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [0x4221ec]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x74], eax
jne 0x40c592
cmp ecx, ebx
je 0x40c592
mov word [esp + 0x6c], 0xa
mov dword [esp + 0x74], 0x8007000e
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x74]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x78]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x7c]
push eax
mov byte [esp + 0xd0], 9
mov dword [edx + 0xc], esi
call dword [ecx + 0x1c]
mov esi, eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xbc], 8
call dword [0x4221c8]
jmp 0x40c63d
push str.Error:_Param_array_invalid_state_for:
lea ecx, [esp + 0x54]
call fcn.00402580
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov byte [esp + 0xc0], 0xb
call dword [ecx + 0x24]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
call fcn.00407530
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push edi
call fcn.0040a6a0
mov ecx, dword [esp + 0x38]
push ecx
call ebp
push edi
mov byte [esp + 0xbc], 8
call ebp
mov edi, dword [0x4221d4]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40c662
mov dword [esp + 0x18], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0xb8], 7
je 0x40c674
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
mov byte [esp + 0xbc], 6
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x5c]
push eax
call dword [0x4221c8]
mov ecx, dword [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0xbc], 3
call dword [0x4221c8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jb 0x40c418
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x8c]
push edx
call dword [0x4221c8]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jb 0x40c341
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x40c75b
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0xb8], 7
je 0x40c723
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call ebp
mov edi, dword [0x4221c8]
lea edx, [esp + 0x5c]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x7c]
push ecx
call edi
lea edx, [esp + 0x8c]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x40c75b
push ebx
call dword [0x4221f0]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb8], bl
je 0x40c770
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0xb8], 0xffffffff
je 0x40c789
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xac
ret