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

Disassembly:
push 0xffffffffffffffff
push 0x41a390
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x423018]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
xor ebx, ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
push eax
push 0x41cdac
push 1
push ebx
push 0x41b30c
mov byte [esp + 0xd0], 1
call dword [0x41b270]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push 0x41b2fc
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d265
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], ebx
mov ecx, dword [eax]
push 0x41cd7c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
mov dword [esp + 0x28], ebx
cmp esi, ebx
mov byte [esp + 0xbc], 2
jl 0x40d7c1
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xbc], 3
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov esi, eax
cmp esi, ebx
jge 0x40d2f0
mov ecx, dword [esp + 0x24]
mov edi, dword [0x41b220]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call edi
jmp 0x40d7c8
cmp word [esp + 0x44], 2
jne 0x40d3b1
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x64]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40d35f
mov ecx, dword [esp + 0x24]
mov esi, dword [0x41b220]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov byte [esp + 0xbc], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d33d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40d358
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40d7fc
cmp dword [esp + 0x24], ebx
jne 0x40d3b1
mov esi, dword [0x41b220]
push ebx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
mov byte [esp + 0xbc], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d38c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40d3a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x40d7fc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x40d3e5
mov eax, dword [esp + 0x24]
mov esi, dword [0x41b220]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov byte [esp + 0xbc], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d38c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40d38c
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp dword [esp + 0x58], ebx
mov edi, eax
mov dword [esp + 0x54], ebx
jbe 0x40d312
mov esi, dword [0x41b214]
lea ecx, [esp + 0x8c]
push ecx
call esi
mov byte [esp + 0xbc], 4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push eax
call edx
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push 0x41bd3c
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40d799
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x5c], 1
mov edi, eax
jne 0x40d78d
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40d78d
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push 0x41bd8c
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40d781
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor ebp, ebp
cmp dword [esp + 0x48], ebx
mov edi, eax
jbe 0x40d771
nop
lea ecx, [esp + 0x7c]
push ecx
call esi
mov byte [esp + 0xbc], 5
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x7c]
push ecx
push ebp
push eax
call edx
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push 0x41bd7c
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40d751
mov dword [esp + 0x30], ebx
mov byte [esp + 0xbc], 6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
call esi
mov byte [esp + 0xbc], 7
cmp word [esp + 0x44], 2
jne 0x40d5ac
mov dword [esp + 0x34], ebx
mov byte [esp + 0xbc], 8
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x7c], edx
call fcn.00408a00
mov esi, dword [esp + 0x34]
push esi
call dword [0x41b1fc]
mov eax, esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x34], ebx
call fcn.004120a0
lea esi, [esp + 0x34]
mov byte [esp + 0xbc], 7
call fcn.00410c50
jmp 0x40d5bf
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov edi, eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40d71c
push eax
call dword [0x41b224]
test eax, eax
jbe 0x40d71c
test dword [esp + 0x64], 0x2000
je 0x40d718
lea ecx, [esp + 0x64]
call fcn.00411eb0
test eax, eax
jbe 0x40d718
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x9c]
push ecx
push edx
mov dword [esp + 0x68], 0xffffffff
call dword [0x41b268]
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x2c]
push eax
push 0x41cd4c
push 0x17
push ebx
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0xd0], 0xa
call dword [0x41b270]
mov edi, eax
cmp edi, ebx
jl 0x40d6de
mov edx, dword [esp + 0x28]
cmp edx, ebx
je 0x40d693
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x80]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x84]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x88]
push edx
push ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0xc], edi
call ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
push ecx
push eax
call edx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x40d6c8
push eax
call dword [0x41b224]
test eax, eax
je 0x40d6c8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x70]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40d6ef
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40d6eb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push ebx
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0xbc], 9
je 0x40d703
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xbc], 7
mov eax, dword [esp + 0x3c]
push eax
call dword [0x41b220]
jmp 0x40d729
push 8
jmp 0x40d71d
push ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x64]
push eax
call dword [0x41b1e8]
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x41b220]
mov esi, dword [0x41b214]
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0xc0], 4
call dword [0x41b1e8]
add ebp, 1
cmp ebp, dword [esp + 0x48]
jb 0x40d4e0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x8c]
push eax
call dword [0x41b1e8]
mov eax, dword [esp + 0x54]
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
jb 0x40d402
jmp 0x40d312
push ebx
call dword [0x41b220]
mov byte [esp + 0xbc], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d7df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40d7fa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004187da
add esp, 0xac
ret 4