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

Disassembly:
push 0x20
mov eax, 0x506516
call fcn.004e5a27
xor edi, edi
cmp dword [0x553308], edi
jne 0x41ba8a
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x41b4ca
cmp dword [ebp + 0x10], edi
jne 0x41b4ca
lea eax, [ebp - 0x1c]
push eax
call dword [0x5085d0]
jmp 0x41b4d3
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov esi, dword [0x5085b0]
push edi
push dword [ebx + 0x18]
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xac]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0041cec3
push dword [eax]
mov eax, ebx
push dword [0x55393c]
call fcn.00417e1e
push dword [ebp + 8]
push dword [ebp - 0x10]
call esi
mov esi, dword [0x5085c4]
xor ecx, ecx
cmp dword [0x553438], edi
mov dword [ebp - 0x10], eax
setne cl
push ecx
push 0x8056
push eax
call esi
xor eax, eax
cmp dword [0x553438], edi
setne al
push eax
push 0x8057
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x41ba42
cmp eax, 3
je 0x41ba42
cmp eax, 1
je 0x41b560
cmp eax, 4
jne 0x41b629
push edi
push 0x8001
push dword [ebp - 0x10]
call dword [0x5085d8]
cmp dword [0x553298], edi
je 0x41b595
cmp eax, 0xffffffff
je 0x41b629
push edi
push 0x8001
push dword [ebp - 0x10]
mov eax, ebx
call fcn.0041c9df
jmp 0x41b629
cmp eax, 0xffffffff
jne 0x41b5cc
lea eax, [ebp + 0x10]
push 0x295f
push eax
call fcn.00417754
pop ecx
pop ecx
push dword [eax]
push 0x8001
push 0x400
push 1
push dword [ebp - 0x10]
call dword [0x5085cc]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040d58f
push 0x553860
mov dword [ebp + 0x10], edi
call dword [0x5082e8]
mov eax, dword [0x553304]
call fcn.00430531
push eax
push 0x553860
call fcn.00430c3f
cmp eax, edi
je 0x41b609
cmp dword [eax + 0x38], edi
jne 0x41b609
cmp dword [eax + 0x58], 4
jne 0x41b609
xor eax, eax
inc eax
cmp dword [ebx + 0x78], eax
jne 0x41b609
mov dword [ebp + 0x10], eax
push 0x553860
call dword [0x508300]
xor eax, eax
cmp dword [ebp + 0x10], edi
sete al
or eax, 0x400
push eax
push 1
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 8], 1
jne 0x41b9f8
lea ecx, [ebp + 0x10]
call fcn.0041162c
mov dword [ebp - 4], edi
cmp dword [ebx + 0x20], edi
jne 0x41b68f
cmp dword [ebx + 4], edi
je 0x41b68f
lea eax, [ebp + 8]
push 0x2843
push eax
call fcn.00417754
pop ecx
pop ecx
lea edi, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004115b7
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d58f
xor eax, eax
cmp dword [0x553438], eax
jne 0x41b6db
cmp dword [ebx + 0x20], eax
jne 0x41b6db
cmp dword [ebx + 0x28], eax
jne 0x41b6db
cmp dword [ebx + 0x98], eax
jmp 0x41b6d9
lea eax, [ebp + 8]
push 0x2842
push eax
call fcn.00417754
pop ecx
pop ecx
lea edi, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004115b7
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d58f
xor eax, eax
cmp dword [0x553438], eax
jne 0x41b6db
cmp dword [ebx + 0x20], eax
jne 0x41b6db
cmp dword [ebx + 0x28], eax
jne 0x41b6db
cmp dword [ebx + 0x98], eax
je 0x41b6db
cmp dword [ebx + 0x34], eax
jne 0x41b6de
xor eax, eax
inc eax
push eax
mov edi, 0x804d
push edi
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x10]
call fcn.00443f41
cmp dword [ebx + 0x78], 2
lea eax, [ebp + 8]
jge 0x41b714
push 0x2740
push eax
call fcn.00417754
pop ecx
pop ecx
mov byte [ebp - 4], 3
jmp 0x41b725
push 0x2741
push eax
call fcn.00417754
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.004115b7
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d58f
xor edi, edi
cmp dword [ebx + 0x60], edi
je 0x41b754
push edi
push dword [ebp + 0x10]
push 0x8077
push dword [ebp - 0x10]
call fcn.00443f41
xor eax, eax
cmp dword [ebx + 0x28], edi
setne al
push eax
push 0x8077
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
mov edi, ebx
call fcn.0041c2ec
mov edi, 0x400
push edi
push 0
push dword [ebp - 0x10]
mov eax, ebx
call fcn.0041c9df
cmp dword [0x553304], 0
jle 0x41b7c0
lea eax, [ebp + 8]
push 0x189
push eax
call fcn.00417754
pop ecx
pop ecx
push dword [eax]
push 0x804c
push edi
xor edi, edi
push edi
push dword [ebp - 0x10]
call dword [0x5085cc]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d58f
jmp 0x41b947
cmp dword [ebx + 0x84], 0
jne 0x41b7d5
call dword [0x5085dc]
mov dword [ebx + 0x84], eax
push dword [ebx + 0x84]
call dword [0x508590]
test eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jl 0x41b801
push edi
push dword [ebp + 8]
mov eax, ebx
push dword [ebx + 0x84]
call fcn.0041c9df
dec dword [ebp + 8]
jns 0x41b7eb
mov edi, 0x553860
push edi
call dword [0x5082e8]
push dword [0x553304]
push edi
call fcn.00430c3f
test eax, eax
je 0x41b8ea
and dword [ebp + 0xc], 0
or dword [ebp - 0x14], 0xffffffff
and dword [ebp + 8], 0
lea edi, [eax + 0x6c]
mov eax, edi
call fcn.0043db7a
test eax, eax
jbe 0x41b8ea
mov esi, dword [ebp + 8]
call fcn.0044e95b
mov eax, dword [eax]
cmp dword [eax + 0x38], 1
je 0x41b85c
call fcn.0044e95b
mov eax, dword [eax]
cmp dword [eax + 0x38], 2
jne 0x41b8a8
mov esi, dword [ebp + 8]
inc dword [ebp + 0xc]
call fcn.0044e95b
mov eax, dword [eax]
add eax, 0x70
push dword [eax]
lea eax, [esi + 0x85fc]
push eax
push 0
push dword [ebx + 0x84]
call dword [0x508598]
mov eax, dword [0x5531a8]
cmp eax, 1
je 0x41b8a8
test eax, eax
je 0x41b8a8
call fcn.0044e95b
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
cmp eax, dword [0x553a24]
jne 0x41b8a8
mov eax, esi
mov dword [ebp - 0x14], eax
inc dword [ebp + 8]
mov eax, edi
call fcn.0043db7a
cmp dword [ebp + 8], eax
jb 0x41b83f
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x41b8e4
add eax, 0x85fc
push 0
push eax
mov eax, edi
call fcn.0043db7a
mov ecx, eax
mov eax, 0x85fc
add ecx, eax
push ecx
push eax
push dword [ebx + 0x84]
call dword [0x5085b4]
mov esi, dword [0x5085c4]
push 0x553860
call dword [0x508300]
lea eax, [ebp + 8]
push 0x189
push eax
call fcn.00417754
pop ecx
pop ecx
push dword [eax]
xor edi, edi
push dword [ebx + 0x84]
push 0x410
push edi
push dword [ebp - 0x10]
call dword [0x5085cc]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040d58f
cmp dword [ebp + 0xc], edi
jne 0x41b945
push 1
push 0x8077
push dword [ebp - 0x10]
call esi
push 0x401
push edi
push dword [ebp - 0x10]
call esi
xor edi, edi
cmp dword [ebx + 0x24], edi
je 0x41b95a
xor eax, eax
cmp dword [0x553438], edi
setne al
push eax
jmp 0x41b95c
push 1
push 0x80cf
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [0x5533c8], edi
sete al
push eax
push 0x8051
push dword [ebp - 0x10]
call esi
push 1
push 0x804b
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x90], edi
sete al
push eax
push 0x8052
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x94], edi
sete al
push eax
push 0x8053
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x10], 1
setne al
push eax
push 0x8054
push dword [ebp - 0x10]
call esi
cmp dword [ebx + 0x10], 1
jne 0x41b9db
cmp dword [ebx + 0x28], edi
jne 0x41b9db
cmp dword [0x553438], edi
je 0x41b9de
xor edi, edi
inc edi
push edi
push 0x804e
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.0040d58f
xor edi, edi
jmp 0x41ba24
cmp dword [ebp + 8], 6
jne 0x41ba24
xor eax, eax
cmp dword [ebx + 0x10], edi
sete al
push eax
push 0x8051
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebx + 0x24], edi
sete al
push eax
push 0x80cf
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x10]
push edi
push dword [ebx + 0x14]
mov dword [ebx + 0x9c], eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
push eax
call dword [0x5085d4]
jmp 0x41ba8a
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x14]
call dword [0x50855c]
cmp dword [ebp + 8], edi
mov eax, dword [ebp - 0x10]
push edi
push dword [ebx + 0x14]
mov dword [ebx + 0x9c], eax
push edi
jne 0x41ba76
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
add ecx, edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, edx
push ecx
jmp 0x41ba7c
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
push eax
call dword [0x5085d4]
mov dword [ebx + 0x9c], edi
call fcn.004e5aff
ret 0xc