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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x100b7000]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x491dc6
cmp byte [eax], 0
je 0x491dc6
xor esi, esi
jmp 0x491dcb
mov esi, 1
cmp eax, edi
je 0x491e03
mov ecx, 0x100aeb2c
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x491dfa
test dl, dl
je 0x491df6
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x491dfa
add eax, 2
add ecx, 2
test dl, dl
jne 0x491dda
xor eax, eax
jmp 0x491dff
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x491e18
cmp esi, edi
je 0x491e0d
cmp byte [ebx + 0x3f], 2
je 0x491e18
mov ebx, dword [ebp + 0x14]
test bl, bl
js 0x491e1b
xor eax, eax
jmp 0x491e24
mov ebx, dword [ebp + 0x14]
or dword [ebp + 0x10], 2
mov eax, 1
mov dword [esp + 0x24], eax
test ebx, 0x100
je 0x491e47
cmp eax, edi
jne 0x491e38
cmp esi, edi
je 0x491e47
and ebx, 0xfffffeff
or ebx, 0x200
mov dword [ebp + 0x14], ebx
push 0x2c
call fcn.00442cea
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x491ec3
push 0x2c
push 0
push edi
call fcn.004ce72a
mov edx, dword [esp + 0x24]
add esp, 0xc
mov byte [edi + 8], 0
mov dword [edi], edx
mov dword [edi + 0x1c], edi
mov dword [edi + 0x20], 1
test esi, esi
jne 0x49204e
cmp dword [esp + 0x24], esi
je 0x491e93
test bl, 0x40
je 0x49204e
test ebx, 0x20000
je 0x49204e
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 8]
inc esi
push esi
call fcn.00442cea
mov ebx, eax
add esp, 4
mov byte [edi + 9], 1
test ebx, ebx
jne 0x491edd
push edi
call fcn.004391da
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00428ac4
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
je 0x491f0d
call fcn.00430cea
inc eax
push eax
push ecx
push ebx
call fcn.004ce718
add esp, 0xc
xor esi, esi
cmp dword [0x100b7014], esi
jne 0x491f3c
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
jmp 0x491f86
mov eax, dword [esp + 0x20]
push ebx
push esi
push ecx
mov byte [ebx], 0
mov edx, dword [eax + 0x24]
push eax
call edx
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x491ef9
push ebx
call fcn.004391da
add esp, 4
push edi
call fcn.004391da
jmp 0x4923b3
push 4
call dword [0x100b705c]
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x491f59
push eax
call dword [0x100b7064]
add esp, 4
cmp dword [0x100b7014], esi
jne 0x491f67
mov dword [esp + 0x30], esi
jmp 0x491f86
push 2
call dword [0x100b705c]
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
je 0x491f86
push esi
call dword [0x100b7064]
add esp, 4
mov eax, dword [0x100b8880]
mov dword [esp + 0x14], eax
test eax, eax
je 0x492029
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0xa8]
mov eax, ebx
jmp 0x491faa
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x491fca
test dl, dl
je 0x491fc6
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x491fca
add eax, 2
add ecx, 2
test dl, dl
jne 0x491faa
xor eax, eax
jmp 0x491fcf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x491fdb
mov ecx, dword [esp + 0x20]
cmp dword [esi], ecx
je 0x491fec
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x44]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x491f97
jmp 0x492025
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
dec eax
js 0x49201b
mov ecx, dword [ecx + 0x10]
mov esi, dword [esp + 0x14]
mov edx, eax
add edx, edx
lea ecx, [ecx + edx*8 + 4]
jmp 0x49200a
mov edx, dword [ecx]
test edx, edx
je 0x492015
cmp dword [edx + 4], esi
je 0x492080
sub ecx, 0x10
dec eax
jns 0x49200a
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
inc dword [eax + 0x40]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x492037
push esi
call dword [0x100b706c]
add esp, 4
push ebx
call fcn.004391da
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x492284
mov ebx, dword [ebp + 0x14]
push 0x54
call fcn.00442cea
mov edi, eax
add esp, 4
test edi, edi
je 0x49206b
push 0x54
push 0
push edi
call fcn.004ce72a
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4920d0
mov dword [esp + 0x10], 7
jmp 0x492312
mov eax, dword [esp + 0x30]
test eax, eax
je 0x492092
push eax
call dword [0x100b706c]
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4920a4
push eax
call dword [0x100b706c]
add esp, 4
push ebx
call fcn.004391da
add esp, 4
push edi
call fcn.004391da
add esp, 4
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00428ac4
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push edx
push edi
push eax
mov ecx, ebx
call fcn.0049069a
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x492312
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov eax, dword [edi]
push ecx
push edx
call fcn.0043d7ea
mov eax, dword [edi]
push eax
lea esi, [esp + 0x44]
call fcn.0043794a
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x492312
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], ecx
mov byte [edi + 0x10], bl
lea ecx, [eax + 0xb0]
mov dword [eax + 0xb4], edi
mov eax, dword [eax + 0x3c]
xor esi, esi
mov dword [ecx], 0x10006e30
cmp dword [eax], esi
je 0x492158
mov edx, dword [eax]
push ecx
push 0xf
push eax
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], edi
mov eax, dword [edi]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
cmp byte [eax + 0xe], 0
je 0x492172
or word [edi + 0x16], 1
movzx eax, byte [esp + 0x49]
movzx edx, byte [esp + 0x48]
shl eax, 8
or eax, edx
shl eax, 8
mov dword [edi + 0x20], eax
cmp eax, 0x200
jb 0x4921c9
cmp eax, 0x10000
ja 0x4921c9
lea ecx, [eax - 1]
test eax, ecx
jne 0x4921c9
mov bl, byte [esp + 0x4c]
or word [edi + 0x16], 2
lea ecx, [esp + 0x6c]
call fcn.0043018a
test eax, eax
setne dl
lea ecx, [esp + 0x78]
mov byte [edi + 0x11], dl
call fcn.0043018a
test eax, eax
setne al
mov byte [edi + 0x12], al
jmp 0x4921de
mov dword [edi + 0x20], esi
cmp dword [esp + 0x2c], esi
je 0x4921dc
cmp dword [esp + 0x24], esi
jne 0x4921dc
mov word [edi + 0x11], si
xor bl, bl
movzx esi, bl
mov ebx, dword [edi]
lea eax, [edi + 0x20]
push esi
push eax
call fcn.0044b23a
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x492312
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x1c]
sub ecx, esi
mov dword [edi + 0x24], ecx
cmp byte [edx + 9], al
je 0x492282
mov dword [edi + 0x40], 1
cmp dword [0x100b7014], eax
jne 0x492245
xor esi, esi
push esi
call fcn.0043117a
mov ecx, dword [0x100b8880]
add esp, 4
push esi
mov dword [edi + 0x44], ecx
mov dword [0x100b8880], edi
call fcn.0043113a
mov edi, dword [esp + 0x20]
add esp, 4
jmp 0x492284
push 2
call dword [0x100b705c]
add esp, 4
cmp dword [0x100b7014], 0
mov esi, eax
je 0x49221e
push 0
call dword [0x100b705c]
add esp, 4
mov dword [edi + 0x38], eax
test eax, eax
jne 0x49221e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 7
mov byte [eax + 0x40], 0
jmp 0x492312
mov edi, edx
cmp byte [edi + 9], 0
je 0x492305
mov esi, dword [esp + 0x18]
xor edx, edx
cmp dword [esi + 0x14], edx
jle 0x492305
mov ecx, dword [esi + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x4922a7
cmp byte [eax + 9], 0
jne 0x4922b2
inc edx
add ecx, 0x10
cmp edx, dword [esi + 0x14]
jl 0x49229b
jmp 0x492305
cmp dword [eax + 0x18], 0
je 0x4922c3
mov edi, edi
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x18], 0
jne 0x4922ba
mov edx, dword [edi + 4]
cmp edx, dword [eax + 4]
jae 0x4922da
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [eax + 0x18], edi
jmp 0x492305
cmp dword [eax + 0x14], 0
je 0x4922f0
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 4], edx
jae 0x4922f0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x4922e0
mov edx, dword [eax + 0x14]
mov ecx, edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
test ecx, ecx
je 0x492302
mov dword [ecx + 0x18], edi
mov dword [eax + 0x14], edi
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x34]
mov dword [eax], edi
je 0x492347
mov esi, dword [esp + 0x14]
test esi, esi
je 0x492325
mov eax, dword [esi]
test eax, eax
je 0x492325
call fcn.0048ca3a
push esi
call fcn.004391da
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call fcn.004391da
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [edx], 0
jmp 0x4923a4
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 4]
call fcn.0043cdba
cmp byte [edi + 9], 0
je 0x492376
dec dword [edi + 0xc]
jne 0x492376
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x492372
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
cmp dword [esi + 0x30], 0
jne 0x4923a4
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
mov dword [eax + 0x10], 0x7d0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4923a4
push 0x7d0
push eax
call dword [0x100b708c]
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4923b6
push eax
call dword [0x100b706c]
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00428ac4
mov esp, ebp
pop ebp
ret