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

Disassembly:
push 0xffffffffffffffff
push 0x4499b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x44]
call fcn.0041bff0
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x70], 5
mov dword [esp + 0x58], ebx
jne 0x412f1b
mov esi, 0x80070490
mov dword [esp + 0x58], 0xffffffff
jmp 0x413378
mov edi, dword [esp + 0x60]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x14]
push ecx
push edi
call edx
mov esi, eax
cmp esi, ebx
mov eax, dword [esp + 0x14]
jl 0x413364
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jl 0x413360
xor ebp, ebp
cmp dword [esp + 0x34], ebx
jbe 0x4130b0
lea ecx, [ecx]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x10]
mov byte [esp + 0x64], 3
call eax
mov esi, eax
cmp esi, ebx
jl 0x4131ec
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, eax
cmp esi, ebx
jl 0x4131ec
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x64]
jne 0x412fd0
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x58], 2
je 0x41307a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x41307a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412e70
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x41321f
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x78]
push esi
push ecx
push edi
push eax
mov eax, dword [edx + 0x24]
call eax
mov esi, eax
cmp esi, ebx
jne 0x413065
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
jne 0x413226
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
cmp esi, ebx
jl 0x413065
cmp dword [esp + 0x3c], ebx
je 0x413065
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], ebx
call fcn.0041c0b0
cmp eax, ebx
je 0x413243
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x58], 2
je 0x41307a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x58], 1
je 0x41308f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x58], bl
je 0x4130a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebp, 1
cmp ebp, dword [esp + 0x34]
jb 0x412f60
lea ecx, [esp + 0x44]
call fcn.0041c000
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x413360
mov ebp, dword [esp + 0x6c]
lea esp, [esp]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x60], 7
call fcn.00412cd0
mov edi, dword [esp + 0x3c]
mov edx, dword [edi]
mov ecx, dword [edx + 0x20]
lea eax, [esp + 0x24]
push eax
push edi
call ecx
mov esi, eax
cmp esi, ebx
jl 0x41330d
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x70]
call fcn.00412de0
test al, al
jne 0x413152
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x6c], ebx
je 0x413146
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push 0x4522bc
push eax
mov eax, dword [ecx]
call eax
cmp esi, ebx
je 0x413152
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x413267
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x6c]
add edx, 1
push edx
mov edx, dword [esp + 0x6c]
push ebp
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
call fcn.00412ec0
mov esi, eax
cmp esi, ebx
mov eax, dword [esp + 0x20]
jge 0x413271
cmp eax, ebx
mov byte [esp + 0x58], 6
je 0x41319f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0x58], 5
je 0x4131b4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov byte [esp + 0x58], 4
je 0x4131c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x58], bl
je 0x4131dd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x28], ebx
jne 0x4130d0
jmp 0x413360
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x58], 2
je 0x413201
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x58], 1
je 0x413216
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
jmp 0x413350
mov esi, 0x80004002
jmp 0x413201
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x38], 1
call eax
mov esi, eax
jmp 0x4131ec
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
mov esi, 0x8007000e
call ecx
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x58], 2
je 0x413201
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x413201
mov esi, 0x80004002
jmp 0x41330d
cmp eax, edi
mov dword [esp + 0x30], 1
je 0x4132a4
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov dword [esp + 0x24], ebx
mov eax, dword [edi]
mov edx, dword [eax]
push 0x4522bc
push edi
call edx
cmp esi, ebx
je 0x4132a0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4132c4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov esi, 0x80004002
mov byte [esp + 0x58], 5
je 0x413337
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x413337
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea esi, [esp + 0x2c]
push esi
mov esi, dword [esp + 0x78]
push esi
push eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
mov ecx, dword [edx + 0x24]
call ecx
mov esi, eax
cmp esi, ebx
jge 0x4132fd
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x58], 6
je 0x413322
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x413322
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
push ecx
push ebp
call edx
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x58], 6
je 0x413322
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0x58], 5
je 0x413337
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov byte [esp + 0x58], 4
je 0x41334c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x58], bl
je 0x413360
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x58], 0xffffffff
je 0x413378
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x48]
call fcn.00412d90
test eax, eax
je 0x4133b6
lea ebx, [ebx]
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x4133a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], ebx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x48]
call fcn.00412d90
test eax, eax
jne 0x413390
cmp esi, ebx
jl 0x4133c5
cmp dword [esp + 0x30], ebx
mov eax, 0x80070490
je 0x4133c7
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18