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

Disassembly:
sub esp, 0xa4
mov eax, dword [esp + 0xa8]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebp
jne 0x49f5c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret
push eax
call fcn.004a0760
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x49f5e4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret
push 0x800
call fcn.004b0c77
push 0x18
mov dword [esp + 0x20], eax
call fcn.004b0c77
mov esi, eax
mov ecx, 6
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x38], esi
add eax, 4
push eax
call fcn.0049c930
mov dword [esi], eax
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
push ecx
mov ecx, dword [ebx + 0x34]
push edx
push eax
push ecx
call fcn.0049cae0
push ebp
push ebp
mov dword [esi + 0xc], eax
call fcn.0049cbe0
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x30]
lea eax, [edx*4 + 4]
push eax
call fcn.004b0c77
mov edi, eax
xor eax, eax
mov dword [esi + 8], edi
mov ecx, dword [ebx + 0x30]
add esp, 0x28
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x30]
test eax, eax
jle 0x49f7e6
mov eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax + ebp*4]
push edx
mov edx, dword [ecx + 0x6c]
push edx
call fcn.004a0010
add esp, 0xc
test eax, eax
jle 0x49f71e
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [edx]
mov edx, dword [ecx + ebp*4]
push eax
lea ecx, [esp + 0x78]
mov eax, dword [edx + 8]
push eax
push str.stream_u_rule_u_
push ecx
call fcn.004b219c
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xbc]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [eax]
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
jne 0x49f6ac
mov esi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x49f5d7
mov eax, dword [eax + 0x5c]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
call fcn.0049f4a0
mov ecx, dword [ebx + 0x6c]
mov edx, dword [esp + 0x28]
push edx
push eax
mov ecx, dword [ecx + ebp*4]
mov eax, dword [ecx + 0x50]
mov edx, dword [ecx + 0x48]
push eax
mov eax, dword [ecx + 0x44]
push edx
mov edx, dword [ecx + 0x40]
push eax
mov eax, dword [ecx + 0x20]
push edx
mov edx, dword [ecx + 0x30]
push eax
mov eax, dword [ecx + 0x34]
push edx
mov edx, dword [ecx + 0x28]
push eax
mov eax, dword [ecx + 0x2c]
mov cx, word [ecx + 8]
push edx
push eax
push ecx
call fcn.0049c9e0
mov edx, dword [esi + 8]
add esp, 0x40
mov dword [edx + ebp*4], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + ebp*4]
mov ecx, dword [eax + 0x44]
cmp edx, ecx
jg 0x49f79b
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x28]
add edi, edx
mov edx, dword [esp + 0x28]
cmp edx, ecx
mov dword [esp + 0x24], edi
jg 0x49f7c4
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
test ecx, ecx
je 0x49f7d6
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x30]
inc ebp
cmp ebp, eax
jl 0x49f67d
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
test edx, edx
je 0x49f822
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49f822
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x2c
jne 0x49f822
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx - 1], al
mov dx, word [ebx + 0x28]
mov ax, word [ebx + 0x30]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.0049c970
push esi
mov dword [esi + 4], eax
call fcn.0049cc20
mov eax, dword [esp + 0x48]
push eax
call fcn.004b0b8e
add esp, 0x34
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret