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

Disassembly:
mov eax, 0x4406cc
call fcn.0043e95c
sub esp, 0x1dc
push ebx
push ebp
mov ebp, edx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x10], ebx
je 0x417c2b
push 0x460630
lea ecx, [esp + 0xa8]
call fcn.004023bd
push 8
push ecx
mov dword [esp + 0x1fc], ebx
push dword [ebp + 0x34]
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0xfc]
call fcn.00415be0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1f4], 2
call fcn.00402440
cmp dword [ebp + 0x14], 0x10
jb 0x417907
mov eax, dword [ebp]
jmp 0x417909
mov eax, ebp
push eax
lea eax, [esp + 0x54]
push 0x460674
push eax
call fcn.0041e7a9
add esp, 0xc
push ebx
push ebx
push 0x460530
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x204], 3
call fcn.0041615b
lea ecx, [esp + 0x50]
mov bl, al
call fcn.00402440
test bl, bl
je 0x417c15
mov esi, dword [esp + 0x100]
mov ebx, dword [esp + 0x104]
jmp 0x417c0d
cmp dword [esi + 0x14], 0x10
jb 0x417968
mov edi, dword [esi]
jmp 0x41796a
mov edi, esi
push 5
push 0x460680
push edi
call fcn.00426370
add esp, 0xc
test eax, eax
jne 0x417c0a
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
jne 0x4179a1
inc edi
mov al, byte [edi]
test al, al
jne 0x41798c
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
je 0x417c0a
push edi
call fcn.0042648a
pop ecx
mov cl, byte [edi]
mov dword [esp + 0x24], eax
test cl, cl
je 0x417c0a
movsx ecx, cl
push ecx
call fcn.004257e2
pop ecx
test eax, eax
jne 0x4179e7
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x4179d2
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.004257e2
pop ecx
test eax, eax
je 0x417a06
inc edi
mov al, byte [edi]
test al, al
jne 0x4179f1
cmp byte [edi], 0
je 0x417c0a
mov ecx, edi
call fcn.00417801
mov cl, byte [edi]
mov dword [esp + 0x10], eax
test cl, cl
je 0x417c0a
movsx ecx, cl
push ecx
call fcn.004257e2
pop ecx
test eax, eax
jne 0x417a39
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x417a24
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.004257e2
pop ecx
test eax, eax
je 0x417a58
inc edi
mov al, byte [edi]
test al, al
jne 0x417a43
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
je 0x417c0a
push edi
call fcn.0042648a
pop ecx
mov cl, byte [edi]
mov dword [esp + 0x20], eax
test cl, cl
je 0x417c0a
movsx ecx, cl
push ecx
call fcn.004257e2
pop ecx
test eax, eax
jne 0x417a9e
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x417a89
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.004257e2
pop ecx
test eax, eax
je 0x417abd
inc edi
mov al, byte [edi]
test al, al
jne 0x417aa8
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
je 0x417c0a
push edi
call fcn.0042648a
pop ecx
mov cl, byte [edi]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x417c0a
movsx ecx, cl
push ecx
call fcn.0042578c
pop ecx
test eax, eax
je 0x417b03
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x417aee
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
jne 0x417b22
inc edi
mov al, byte [edi]
test al, al
jne 0x417b0d
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
je 0x417c0a
push edi
call fcn.0042648a
pop ecx
mov cl, byte [edi]
mov dword [esp + 0x18], eax
test cl, cl
je 0x417c0a
movsx ecx, cl
push ecx
call fcn.0042578c
pop ecx
test eax, eax
je 0x417b68
inc edi
mov cl, byte [edi]
test cl, cl
jne 0x417b53
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
jne 0x417b87
inc edi
mov al, byte [edi]
test al, al
jne 0x417b72
mov al, byte [edi]
test al, al
je 0x417c0a
movsx eax, al
push eax
call fcn.0042578c
pop ecx
test eax, eax
je 0x417c0a
push edi
call fcn.0042648a
cmp dword [esp + 0x14], 0
pop ecx
mov edx, eax
je 0x417c0a
xor eax, eax
push 9
pop ecx
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add ecx, 0xfffff894
dec eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], edx
call fcn.004268c0
mov edi, dword [esp + 0x18]
pop ecx
mov dword [edi], eax
mov dword [edi + 4], edx
test edx, edx
jg 0x417c4e
jl 0x417c0a
cmp eax, 0x52d9b780
ja 0x417c4e
add esi, 0x18
cmp esi, ebx
jne 0x41795e
or dword [esp + 0x1f4], 0xffffffff
lea ecx, [esp + 0xec]
call fcn.00414dab
xor ebx, ebx
cmp dword [ebp + 0x28], 0
je 0x417d9e
lea ecx, [ebp + 0x18]
call fcn.00417db5
mov edi, eax
test edi, edi
jne 0x417c69
call dword [0x462828]
jmp 0x417da1
or dword [esp + 0x1f4], 0xffffffff
lea ecx, [esp + 0xec]
call fcn.00414dab
xor eax, eax
jmp 0x417da1
push 0x30
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.0042a890
add esp, 0xc
lea eax, [esp + 0xbc]
push 0x30
push ebx
push eax
call fcn.0042a890
mov al, byte [esp + 0x80]
or dword [esp + 0x3c], 0xffffffff
and al, 0xfb
or al, 0x1b
add esp, 0xc
mov byte [esp + 0x74], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x4499a8
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1f4], 4
call fcn.004183c4
test al, al
je 0x417d27
movzx esi, word [ebp + 0x30]
lea ecx, [esp + 0x74]
call fcn.0041772a
lea eax, [esp + 0x74]
push esi
push edi
push 0x30
push eax
lea ecx, [esp + 0x38]
call fcn.00418434
lea ecx, [esp + 0x74]
mov esi, eax
call fcn.0041772a
cmp esi, 0xffffffff
je 0x417d27
push dword [ebp + 0x34]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xc4]
call fcn.0041774e
test eax, eax
jns 0x417d31
call dword [0x462828]
mov ebx, eax
jmp 0x417d62
cmp eax, 0x30
je 0x417d3b
push 0xb
pop ebx
jmp 0x417d62
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x14]
add eax, 0xfc558180
and eax, 0x7fffffff
mov dword [ecx], eax
mov dword [ecx + 4], ebx
cmp ebx, ebx
jl 0x417d82
jg 0x417d62
cmp eax, 0x52d9b780
jbe 0x417d82
mov dword [esp + 0x28], 0x4499a8
lea ecx, [esp + 0x28]
mov dword [esp + 0x1f4], 9
call fcn.00418654
mov eax, ebx
jmp 0x417da1
mov dword [esp + 0x28], 0x4499a8
lea ecx, [esp + 0x28]
mov dword [esp + 0x1f4], 0xa
call fcn.00418654
push 0x1f
pop eax
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret