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

Disassembly:
push 0xffffffffffffffff
push 0x42102d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x422ac4
push 1
push ebx
push 0x422a50
mov byte [esp + 0xc4], 1
call dword [0x422254]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp + 8]
push 0x42411c
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40bc30
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push 0x422a60
mov dword [esp + 0x50], ebx
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
mov dword [esp + 0x1c], ebx
cmp esi, ebx
mov byte [esp + 0xb0], 2
jl 0x40c1b8
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov byte [esp + 0xb8], 3
call dword [ecx + 0x54]
mov esi, eax
cmp esi, ebx
jge 0x40bce5
mov eax, dword [esp + 0x20]
mov edi, dword [0x4221f0]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb0], bl
je 0x40bcc3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb0], 0xffffffff
je 0x40c1ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c1ed
cmp word [esp + 0x40], 2
jne 0x40bd9c
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [edx + 0x64]
mov edi, eax
cmp edi, ebx
jge 0x40bd4e
mov edx, dword [esp + 0x20]
mov esi, dword [0x4221f0]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb0], bl
je 0x40bd2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb0], 0xffffffff
je 0x40bd47
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, edi
jmp 0x40c1ef
cmp dword [esp + 0x20], ebx
jne 0x40bd9c
mov esi, dword [0x4221f0]
push ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb0], bl
je 0x40bd79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb0], 0xffffffff
je 0x40bd92
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004005
jmp 0x40c1ef
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x40bdef
mov eax, dword [esp + 0x20]
mov esi, dword [0x4221f0]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb0], bl
je 0x40bdcc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb0], 0xffffffff
je 0x40bde5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x40c1ef
mov edx, dword [eax]
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [edx + 0x20]
mov esi, eax
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
jbe 0x40c1a2
mov edi, dword [0x4221d4]
lea edx, [esp + 0x88]
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x50]
push edx
push eax
mov byte [esp + 0xbc], 4
call dword [ecx + 0x24]
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x34]
push edx
push 0x424230
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40c17f
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp dword [esp + 0x54], 1
jne 0x40c175
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov esi, eax
cmp esi, ebx
jl 0x40c175
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x2c]
push edx
push 0x424270
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40c16b
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x3c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x50], ebp
jbe 0x40c15d
lea eax, [esp + 0x78]
push eax
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push ebp
push eax
mov byte [esp + 0xbc], 5
call dword [ecx + 0x24]
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
push 0x424260
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40c139
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xb8], 6
call dword [ecx + 0x3c]
mov esi, eax
lea eax, [esp + 0x60]
push eax
call edi
cmp word [esp + 0x40], 2
mov byte [esp + 0xb0], 7
jne 0x40bfa2
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x78]
mov dword [esp + 0x78], ecx
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 8
call fcn.00402e60
lea ecx, [esp + 0x38]
call fcn.00402810
push eax
lea ecx, [esp + 0x64]
call fcn.00409c00
lea ecx, [esp + 0x38]
mov byte [esp + 0xb0], 7
call fcn.0040a850
jmp 0x40bfb3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40c10e
push eax
call dword [0x4221dc]
cmp eax, ebx
jbe 0x40c10e
mov eax, dword [esp + 0x60]
test ah, 0x20
je 0x40c100
lea ecx, [esp + 0x60]
call fcn.0040a4a0
test eax, eax
jbe 0x40c100
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x98]
push eax
push ecx
mov dword [esp + 0x64], 0xffffffff
call dword [0x422234]
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x24]
push edx
push 0x422ad4
push 0x17
push ebx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0xc4], 0xa
call dword [0x422254]
mov esi, eax
cmp esi, ebx
jl 0x40c0ca
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40c085
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
lea esi, [esp + 0x5c]
push esi
lea esi, [esp + 0x2c]
push esi
sub esp, 0x10
mov esi, esp
mov dword [esi], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x80]
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x84]
push ecx
push eax
mov dword [esi + 0xc], ebp
call dword [edx + 0x1c]
mov ebp, dword [esp + 0x50]
mov esi, eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x68]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40c0b6
push eax
call dword [0x4221dc]
cmp eax, ebx
je 0x40c0b6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x70]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c0d9
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40c0d5
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0x68]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0xb0], 9
je 0x40c0eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0xb4], 7
call dword [0x4221f0]
jmp 0x40c119
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 8
push eax
call dword [ecx + 0x68]
jmp 0x40c119
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0x68]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x60]
push edx
call dword [0x4221c8]
mov eax, dword [esp + 0x30]
push eax
call dword [0x4221f0]
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0xb4], 4
call dword [0x4221c8]
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x50], ebp
jb 0x40bee1
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x88]
push eax
call dword [0x4221c8]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jb 0x40be10
mov ecx, dword [esp + 0x20]
mov edi, dword [0x4221f0]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
jmp 0x40c1bf
push ebx
call dword [0x4221f0]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xb0], bl
je 0x40c1d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb0], 0xffffffff
je 0x40c1ed
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret