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

Disassembly:
push 0xffffffffffffffff
push 0x41a2f2
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x423018]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x41cdac
push 1
push ebx
push 0x41b30c
mov byte [esp + 0xdc], 1
call dword [0x41b270]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 8]
push 0x41b2fc
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d8e0
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push 0x41cd7c
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
mov dword [esp + 0x24], ebx
cmp edi, ebx
mov byte [esp + 0xc8], 2
jl 0x40ddee
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x40d97a
mov eax, dword [esp + 0x24]
push eax
call dword [0x41b220]
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d955
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40d970
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x40de29
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x54], ebx
mov ebp, eax
mov dword [esp + 0x4c], edi
jbe 0x40dd47
lea esp, [esp]
mov esi, dword [0x41b214]
lea ecx, [esp + 0x84]
push ecx
call esi
mov edx, dword [esp + 0x70]
mov byte [esp + 0xc8], 3
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x84]
push edx
push edi
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push 0x41bd3c
push eax
mov eax, dword [ecx]
call eax
mov ebp, eax
cmp ebp, ebx
jl 0x40dd28
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x44], 2
mov ebp, eax
jne 0x40dd1c
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov ebp, eax
cmp ebp, ebx
jl 0x40dd1c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 0x41bd8c
push eax
mov eax, dword [ecx]
call eax
mov ebp, eax
cmp ebp, ebx
jl 0x40dd10
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x38], ebx
mov ebp, eax
mov dword [esp + 0x48], edi
jbe 0x40dd00
lea ecx, [esp + 0x74]
push ecx
call esi
mov byte [esp + 0xc8], 4
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x74]
push ecx
push edi
push eax
call edx
lea ecx, [esp + 0x74]
mov ebp, eax
call fcn.00411eb0
test eax, eax
jbe 0x40dcdc
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0x41bd7c
push eax
mov eax, dword [ecx]
call eax
mov ebp, eax
cmp ebp, ebx
jl 0x40dcdc
mov dword [esp + 0x28], ebx
mov byte [esp + 0xc8], 5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
lea ecx, [esp + 0x5c]
push ecx
call esi
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x5c]
push ecx
push eax
call edx
mov ebp, eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40dcb2
push eax
call dword [0x41b224]
test eax, eax
jbe 0x40dcb2
lea ecx, [esp + 0x5c]
call fcn.00411eb0
test eax, eax
jbe 0x40dcb2
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xac]
push eax
push ecx
mov dword [esp + 0x58], ebx
call dword [0x41b268]
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push 0x41cd5c
push 0x17
push ebx
lea eax, [esp + 0xbc]
push eax
mov byte [esp + 0xdc], 8
call dword [0x41b270]
mov ebp, eax
cmp ebp, ebx
jl 0x40dd6b
lea ecx, [esp + 0x5c]
push ecx
call fcn.00410720
add esp, 4
cmp eax, ebx
jl 0x40dc0c
lea edi, [esp + 0x24]
lea esi, [esp + 0x9c]
call fcn.00411e10
mov byte [esp + 0xc8], 9
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x50]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x74]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x7c]
push ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0xc], esi
call ecx
lea edx, [esp + 0x9c]
push edx
mov ebp, eax
mov byte [esp + 0xcc], 8
call dword [0x41b1e8]
mov esi, dword [0x41b220]
jmp 0x40dc64
mov eax, str.Error:_Param_array_invalid_state_for:
lea esi, [esp + 0x58]
call fcn.00403780
mov dword [esp + 0x3c], ebx
mov byte [esp + 0xc8], 0xb
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
lea eax, [esp + 0x3c]
mov edi, esi
call fcn.00411dc0
mov edi, dword [esp + 0x58]
push edi
call fcn.004105d0
mov ecx, dword [esp + 0x3c]
mov esi, dword [0x41b220]
push ecx
call esi
push edi
mov byte [esp + 0xcc], 8
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40dc8d
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0xc8], 7
je 0x40dca1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
mov byte [esp + 0xcc], 6
call esi
mov edi, dword [esp + 0x48]
jmp 0x40dcb8
mov esi, dword [0x41b220]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x5c]
push eax
call dword [0x41b1e8]
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov esi, dword [0x41b214]
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xcc], 3
call dword [0x41b1e8]
add edi, 1
cmp edi, dword [esp + 0x38]
mov dword [esp + 0x48], edi
jb 0x40da81
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x84]
push eax
call dword [0x41b1e8]
add edi, 1
cmp edi, dword [esp + 0x54]
mov dword [esp + 0x4c], edi
jb 0x40d9a0
mov eax, dword [esp + 0x24]
push eax
call dword [0x41b220]
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ddcf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40ddcf
mov byte [esp + 0xc8], 7
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40dd83
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [0x41b220]
push ebx
call edi
mov esi, dword [0x41b1e8]
lea eax, [esp + 0x5c]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x74]
push edx
call esi
lea eax, [esp + 0x84]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ddcf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40ddea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebp
jmp 0x40de29
push ebx
call dword [0x41b220]
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40de0c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40de27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004187da
add esp, 0xb8
ret