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

Disassembly:
sub esp, 0x90
mov edx, dword [esp + 0x98]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
xor ebx, ebx
inc edx
push edi
mov eax, dword [esi]
mov edi, dword [esi + 0xb8]
push edx
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x14]
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x7c], ebx
call fcn.0047b1e0
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0xac]
mov eax, dword [ecx + eax*4 + 0x60]
add eax, edx
lea edx, [esp + 0x7c]
push edx
push ebx
push 2
push eax
push ebx
push esi
mov dword [esp + 0x4c], eax
call fcn.00486c40
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jne 0x4a039e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push 1
push ecx
push ebp
call dword [ebp + 0x40]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a039e
mov esi, dword [esp + 0xac]
lea edx, [esi + 1]
push edx
call fcn.0047b1e0
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + eax*4 + 0x60]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push 1
add edx, esi
push ecx
push ebp
mov dword [esp + 0x64], edx
call dword [ebp + 0x40]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a039e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xc], ebx
mov edx, dword [esp + 0x18]
mov dword [edx + 0x10], ebx
mov eax, dword [esp + 0x18]
mov word [eax + 0x14], bx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov cx, word [eax]
mov word [edx + 0x16], cx
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x18], 0
mov edx, dword [esp + 0x18]
mov byte [edx + 0x19], 2
mov edi, dword [edi + 0x3c]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0xa4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x14]
cmp dword [ecx + 0x14c], ebx
je 0x49fd1b
test byte [edx + 0xf8], 0x10
jne 0x49fd1b
test dword [ecx + 0x23c], 0x10000
jne 0x49fd1b
mov ecx, dword [eax]
mov edx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
push ecx
mov ecx, dword [ecx + 8]
lea esi, [esp + 0x58]
push esi
push ecx
push 0x80
lea ecx, [esp + 0x30]
push ebx
push ecx
push edx
push eax
call fcn.0045f500
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x4a039e
mov eax, dword [esp + 0x1c]
jmp 0x49fd27
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc], ebx
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], ebx
mov ecx, dword [esp + 0x14]
mov word [ecx + 0x14], bx
mov dx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax + 0x16], dx
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x18], 0
mov edx, dword [esp + 0x14]
mov byte [edx + 0x19], 2
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x9c], ebx
je 0x4a027a
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0xffff
push edx
push eax
call fcn.00484c20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a039e
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
cmp word [eax + 0x14], si
jbe 0x4a010a
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x48]
lea ecx, [esp + 0x8c]
and ebx, 0xffff
push edx
mov edx, dword [esp + 0x24]
push ecx
push ebx
push eax
push edx
mov dword [esp + 0x60], ebx
call fcn.0048a210
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4a039e
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
call fcn.00483c10
mov ecx, dword [esp + 0xb4]
add esp, 0xc
cmp eax, ecx
lea edi, [esp + 0x14]
je 0x49fe2b
lea edi, [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 1]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x49fe42
mov eax, dword [ecx]
jmp 0x49fe67
mov eax, dword [ecx + 0x1d4]
test ah, 8
je 0x49fe54
mov eax, 0x26
jmp 0x49fe5d
and al, 1
neg al
sbb eax, eax
and eax, 6
lea edx, [eax + ebx*2 + 0x1a]
xor eax, eax
mov ax, word [edx + ebp]
mov esi, dword [ecx + 0x1d4]
mov dword [esp + 0x4c], eax
mov edx, esi
and edx, 0x800
mov dword [esp + 0x6c], edx
je 0x49fe89
mov dword [esp + 0x3c], 0x26
jmp 0x49fe98
mov eax, esi
and al, 1
neg al
sbb eax, eax
and eax, 6
mov dword [esp + 0x3c], eax
cmp word [esp + 0x2c], 0
jne 0x49fea4
mov eax, dword [ecx]
jmp 0x49fec7
test edx, edx
je 0x49feaf
mov eax, 0x26
jmp 0x49febd
mov ecx, esi
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 6
mov eax, ecx
lea ecx, [eax + ebx*2 + 0x18]
xor eax, eax
mov ax, word [ecx + ebp]
test edx, edx
je 0x49fed2
mov ecx, 0x26
jmp 0x49fee0
mov edx, esi
and dl, 1
neg dl
sbb edx, edx
and edx, 6
mov ecx, edx
lea ecx, [ecx + ebx*2 + 0x1a]
xor edx, edx
mov dx, word [ecx + ebp]
mov ecx, dword [esp + 0x3c]
sub eax, edx
lea edx, [ecx + ebx*2 + 0x1c]
xor ecx, ecx
mov cx, word [edx + ebp]
mov edx, dword [esp + 0x4c]
sub eax, ecx
lea edx, [eax + edx + 4]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x49ff13
mov ecx, 0x26
jmp 0x49ff20
mov eax, esi
and al, 1
neg al
sbb eax, eax
and eax, 6
mov ecx, eax
mov eax, dword [edi]
xor esi, esi
xor ebx, ebx
add ecx, 0x1a
mov si, word [eax + 0x14]
mov bx, word [eax + 0x16]
shl esi, 1
sub ebx, esi
and ecx, 0xffff
sub ebx, ecx
cmp ebx, edx
jae 0x49ffe9
mov ebx, dword [esp + 0xa4]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + 0x14c]
test edx, edx
je 0x49ffad
test byte [ebx + 0xf8], 0x10
jne 0x49ffad
test dword [ecx + 0x23c], 0x10000
jne 0x49ffad
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [ecx]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ebx + 4]
push 0x90
lea edx, [esp + 0x30]
push 0
push edx
push eax
push ecx
call fcn.0045f500
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a039a
jmp 0x49ffbd
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push edi
push 1
mov dword [ecx], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
push ecx
push ebx
call fcn.004a0920
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a039a
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4a00c1
mov eax, dword [edx]
xor esi, esi
test eax, eax
je 0x4a00c1
xor ecx, ecx
mov eax, dword [ecx + edx]
mov eax, dword [eax + 0xb8]
mov ebx, dword [eax + 0xc]
cmp ebx, dword [ebp + 8]
jne 0x4a003e
mov bx, word [eax + 0x10]
cmp bx, word [esp + 0x2c]
jne 0x4a003e
mov edx, dword [edi]
mov esi, 1
mov edx, dword [edx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [edi]
mov dx, word [edx + 0x14]
mov word [eax + 0x10], dx
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + edx + 4]
add ecx, 4
test eax, eax
jne 0x4a0003
test esi, esi
je 0x4a00c1
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x14c]
test edx, edx
je 0x4a00c1
test byte [ecx + 0xf8], 0x10
jne 0x4a00c1
test dword [eax + 0x23c], 0x10000
jne 0x4a00c1
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4a00c1
mov eax, dword [ecx + 4]
test eax, eax
je 0x4a00c1
mov eax, dword [edi]
xor edx, edx
mov dx, word [eax + 0x14]
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 8]
push eax
push edx
push 6
lea eax, [esp + 0x34]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00461550
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4a039a
mov ebp, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
push edx
push eax
push ebp
push esi
call fcn.004a07f0
mov ecx, dword [edi]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.004a07f0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x54]
add ecx, 2
add esp, 0x20
cmp cx, word [eax + 0x14]
mov dword [esp + 0x2c], ecx
jb 0x49fdbf
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x30]
je 0x4a0137
mov edi, dword [esp + 0xa4]
push eax
push edi
call fcn.00486a50
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a026d
jmp 0x4a013e
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4a0151
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4a0203
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
push 1
push ecx
push ebp
call dword [ebp + 0x40]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a039e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a0203
mov edx, dword [edi]
mov ecx, dword [edx + 0x14]
mov edx, dword [ecx + 0x14c]
test edx, edx
je 0x4a01de
test byte [edi + 0xf8], 0x10
jne 0x4a01de
test dword [ecx + 0x23c], 0x10000
jne 0x4a01de
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [ecx]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [edi + 4]
push 0x80
lea edx, [esp + 0x30]
push esi
push edx
push eax
push ecx
call fcn.0045f500
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a039e
mov eax, dword [esp + 0x10]
jmp 0x4a01ee
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a021d
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043ab30
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
mov dword [esp + 0x28], 0
jne 0x49fd88
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a027a
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.0043ab30
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4a027a
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x30]
cmp ecx, edx
je 0x4a027a
mov edi, dword [esp + 0xa4]
push eax
push edi
call fcn.00486a50
mov esi, eax
add esp, 8
test esi, esi
je 0x4a027a
mov dword [esp + 0x10], 0
jmp 0x4a03a5
mov edi, dword [esp + 0xa4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x14c]
test ecx, ecx
je 0x4a034c
test byte [edi + 0xf8], 0x10
jne 0x4a034c
test dword [eax + 0x23c], 0x10000
jne 0x4a034c
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
push eax
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
push 0x90
lea eax, [esp + 0x30]
push 0
push eax
push ecx
push ebx
call fcn.0045f500
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a039e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x54]
mov edx, dword [eax + 8]
push eax
push ecx
mov ecx, dword [edi + 4]
push edx
push 0x90
lea eax, [esp + 0x30]
push esi
push eax
push ecx
push ebx
call fcn.0045f500
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a039e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
jmp 0x4a0373
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x18]
mov dword [edx], 0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x14]
push 2
push edx
push ebp
call dword [ebp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x24]
push 2
push eax
push ebp
call dword [ebp + 0x50]
add esp, 0x18
test eax, eax
je 0x4a03e6
test esi, esi
jne 0x4a03e6
mov esi, eax
jmp 0x4a03e6
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a03b7
push 2
push eax
push ebp
call dword [ebp + 0x50]
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a03c9
push 2
push eax
push ebp
call dword [ebp + 0x50]
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a03e6
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x30]
cmp ecx, edx
je 0x4a03e6
push 2
push eax
push ebp
call dword [ebp + 0x50]
add esp, 0xc
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4a03fc
lea edx, [esp + 0x78]
push edx
push edi
call fcn.00486e90
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a0412
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ab30
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret