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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x50]
movzx eax, byte [eax + 0x3c]
push esi
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], edx
xor edx, edx
lea eax, [eax + eax*8]
lea eax, [ecx + eax*8 + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x10]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
push eax
push str.RIGHT_JOIN__s
mov dword [esp + 0x2c], ebx
push 1
mov ebx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edi
call fcn.0043c7b0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jle 0x491c4e
mov esi, dword [ebp + 8]
add esi, 0x2fc
mov dword [esp + 0x10], eax
mov edi, edi
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
or dword [esp + 0x30], ecx
mov eax, dword [edi + 0x6c]
or dword [esp + 0x34], edx
cmp dword [edi + 0x70], eax
mov ecx, dword [esi]
jg 0x491bcf
push ebx
push ebx
push ecx
push 0x88
mov eax, edi
call fcn.0043c3b0
add esp, 0x10
jmp 0x491bf4
lea edx, [eax + 1]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x88
mov word [eax + 2], bx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x491c3c
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jg 0x491c17
push ebx
push ebx
push ecx
push 0x88
mov eax, edi
call fcn.0043c3b0
add esp, 0x10
jmp 0x491c3c
lea edx, [eax + 1]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x88
mov word [eax + 2], bx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
add esi, 0x60
sub dword [esp + 0x10], 1
jne 0x491ba0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
test byte [eax + 0x24], 0x40
jne 0x491cf1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 8]
or dword [esp + 0x30], ecx
or dword [esp + 0x34], edx
cmp dword [edi + 0x5c], ebx
mov dword [esp + 0x24], ebx
jle 0x491cf1
mov dword [esp + 0x10], ebx
mov ecx, dword [edi + 0x68]
add ecx, dword [esp + 0x10]
test word [ecx + 0xa], 0x8002
je 0x491c95
cmp word [ecx + 0xc], 0x2000
jne 0x491cf1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
not eax
and eax, dword [ecx + 0x28]
not edx
and edx, dword [ecx + 0x2c]
or eax, edx
jne 0x491cdc
mov ecx, dword [ecx]
test byte [ecx + 4], 3
jne 0x491cdc
cmp ecx, ebx
mov eax, dword [esi]
je 0x491cc7
push ebx
push ebx
push ecx
push eax
call fcn.00452d30
add esp, 0x10
jmp 0x491cc9
xor eax, eax
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.00452860
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], 0x30
add eax, 1
cmp eax, dword [edi + 0x5c]
mov dword [esp + 0x24], eax
jl 0x491c7e
mov esi, dword [esp + 0xc]
push ebx
push 0x1000
mov eax, 1
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push ebx
mov ecx, 0x12
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push ebx
mov byte [esp + 0x78], bl
add byte [esi + 0x1a], al
push edi
lea eax, [esp + 0x50]
push eax
push esi
call fcn.0049ae80
add esp, 0x20
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x491f95
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
add dword [esi + 0x2c], 1
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
jne 0x491dc3
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x491d94
push ebx
push edi
push ecx
push 0x87
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
mov dword [esp + 0xc], 1
jmp 0x491e34
lea edx, [eax + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x87
mov word [eax + 2], bx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0xc], 1
jmp 0x491e34
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x491de6
mov edi, edi
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x491de6
mov eax, dword [eax + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x491dd0
movzx edx, word [eax + 0x32]
mov dword [esp + 0xc], edx
lea edx, [edi + edx - 1]
mov dword [esi + 0x2c], edx
xor esi, esi
cmp dword [esp + 0xc], ebx
jle 0x491e30
jmp 0x491e08
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
mov ebx, dword [esp + 0x2c]
lea edx, [esi + edi]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004568a0
add esi, 1
add esp, 0xc
cmp esi, dword [esp + 0xc]
jl 0x491e00
xor ebx, ebx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
jg 0x491e5c
push edi
push ebx
push eax
push 0x40
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x491e8b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x40
mov word [eax + 2], bx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x57], bl
jne 0x491ea6
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
jg 0x491ecd
mov ecx, dword [esp + 0x24]
push edi
push ecx
push eax
push 0x1d
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x491efc
lea edx, [ecx + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov byte [eax], 0x1d
mov word [eax + 2], bx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x57], bl
jne 0x491f17
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
mov edx, dword [esi]
cmp byte [edx + 0x57], bl
mov ecx, dword [esi + 0x6c]
je 0x491f28
mov eax, 0x4d6798
jmp 0x491f35
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x491f5b
push ebx
push ecx
push edx
push 0xa
mov eax, esi
call fcn.0043c3b0
add esp, 0x10
jmp 0x491f80
lea edi, [eax + 1]
mov dword [esi + 0x6c], edi
mov esi, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov byte [eax], 0xa
mov word [eax + 2], bx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0049ba00
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
add esp, 4
cmp edi, ebx
je 0x491fa5
mov edx, dword [esi]
push edi
push edx
call fcn.00452b80
add esp, 8
mov eax, dword [esi + 0xe4]
cmp eax, ebx
jne 0x491fc0
mov dword [esi + 0xe4], ebx
add byte [esi + 0x1a], 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
cmp byte [edx + 0x57], bl
je 0x491fe3
mov eax, 0x4d6798
mov eax, dword [eax + 8]
add byte [esi + 0x1a], 0xff
mov dword [esi + 0xe4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 8]
add byte [esi + 0x1a], 0xff
pop edi
mov dword [esi + 0xe4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret