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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x58ac5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x4c]
cmp dword [esi + 0x24], 0
je 0x49f943
cmp dword [esi + 0x20], 0
je 0x49f943
push 0x2f
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0045a020
mov edx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [edi + 0x3c], 0
je 0x49f665
test dl, 0x18
je 0x49f665
cmp dword [esi + 0x80], 2
je 0x49f665
pop edi
mov dword [esi + 0x80], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0
je 0x49f6dc
cmp byte [esi + 0x74], 0
jne 0x49f67f
cmp byte [esi + 0x75], 0
jne 0x49f67f
mov cl, byte [ebp - 0x84]
jmp 0x49f6ce
mov cl, byte [ebp - 0x84]
mov eax, 0x224
cmp word [esi + 0x64], ax
jae 0x49f6ad
or cl, 1
mov byte [ebp - 0x84], cl
movzx eax, byte [esi + 0x74]
shr al, 1
mov byte [ebp - 0x81], al
movzx eax, byte [esi + 0x75]
shr al, 1
jmp 0x49f6bf
or byte [ebp - 0x5e], 4
movzx eax, byte [esi + 0x74]
mov byte [ebp - 0x81], al
movzx eax, byte [esi + 0x75]
or cl, 2
mov byte [ebp - 0x82], al
mov byte [ebp - 0x84], cl
test dl, 1
je 0x49f6dc
or cl, 2
mov byte [ebp - 0x84], cl
cmp dword [esi + 0x10], 0
push ebx
mov bl, byte [ebp - 0x83]
je 0x49f77b
test dl, 4
je 0x49f6fb
or bl, 8
mov byte [ebp - 0x83], bl
test dl, 8
je 0x49f77b
or bl, 4
mov byte [ebp - 0x83], bl
cmp dword [esi + 0x78], 0
je 0x49f723
movzx eax, byte [esi + 0x7c]
mov byte [ebp - 0x58], al
movzx eax, byte [esi + 0x7d]
mov byte [ebp - 0x57], al
movzx eax, byte [esi + 0x7e]
jmp 0x49f778
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x8c], ecx
test ecx, ecx
js 0x49f758
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 2
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x8c]
neg eax
add ecx, eax
jmp 0x49f75a
xor ecx, ecx
movzx eax, byte [ecx + ecx*2 + 0x570c30]
mov byte [ebp - 0x58], al
movzx eax, byte [ecx + ecx*2 + 0x570c31]
mov byte [ebp - 0x57], al
movzx eax, byte [ecx + ecx*2 + 0x570c32]
mov byte [ebp - 0x56], al
cmp dword [esi + 0x18], 0
je 0x49f7b0
test dl, 0x10
je 0x49f7b0
or bl, 0x10
mov byte [ebp - 0x83], bl
cmp dword [esi + 0x70], 0
je 0x49f7ac
mov eax, dword [esi + 0x6c]
test eax, eax
js 0x49f7ac
and eax, 3
mov al, byte [eax + 0x570c48]
or al, 0x20
mov byte [ebp - 0x59], al
jmp 0x49f7b0
mov byte [ebp - 0x59], 0
test dl, 0x20
je 0x49f7c2
or bl, 1
mov byte [ebp - 0x7c], 0
mov byte [ebp - 0x83], bl
mov eax, dword [edi + 0x4c]
cmp dword [eax + 0x20], 0
jne 0x49f7e6
push 4
call fcn.0045a190
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x24], 0
jne 0x49f7f8
push dword [esi + 4]
push edi
call fcn.0049f550
add esp, 8
push 0x4e
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0045a020
mov eax, dword [edi + 0x3c]
add esp, 0xc
test eax, eax
je 0x49f817
mov word [ebp - 0x54], 0x231
jmp 0x49f81b
mov byte [ebp - 0x54], 2
xor ebx, ebx
mov ecx, 0x30
test eax, eax
mov esi, 0x4e
push 0x2f
setne bl
inc ebx
test eax, eax
lea eax, [ebp - 0x54]
cmove esi, ecx
lea ecx, [ebp - 0x84]
add eax, ebx
push ecx
push eax
call fcn.0045a010
add esp, 0xc
cmp dword [edi + 0x3c], 0
je 0x49f896
push 1
lea eax, [ebp - 0x85]
mov byte [ebp - 0x85], 0xa2
push eax
push 0
call fcn.004ac830
lea ecx, [esi - 4]
mov dword [ebp - 0x8c], eax
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.004ac830
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push 4
push eax
lea eax, [ebp + esi - 0x58]
push eax
call fcn.0045a010
add esp, 0x24
call fcn.004a7d50
test eax, eax
je 0x49f8b3
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
call fcn.004a7d00
add esp, 0x10
test eax, eax
je 0x49f91e
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
cmp esi, dword [eax]
jne 0x49f91e
mov al, byte [ebp + ebx - 0x54]
cmp al, byte [ebx + ecx]
jne 0x49f91e
mov al, byte [ebp + ebx - 0x53]
cmp al, byte [ebx + ecx + 1]
jne 0x49f91e
push esi
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.0045a010
add esp, 0xc
call fcn.004a8390
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.004a80e0
add esp, 0xc
sub eax, esi
neg eax
sbb eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
push 4
call fcn.0045a190
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.004b20f1
mov esp, ebp
pop ebp
ret